{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1932","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1932/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1932/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1932/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/1932","id":101720596,"number":1932,"title":"pip state=absent fails if the package is not present -- it should succeed","user":{"login":"fclaerho","id":8522210,"avatar_url":"https://avatars.githubusercontent.com/u/8522210?v=3","gravatar_id":"","url":"https://api.github.com/users/fclaerho","html_url":"https://github.com/fclaerho","followers_url":"https://api.github.com/users/fclaerho/followers","following_url":"https://api.github.com/users/fclaerho/following{/other_user}","gists_url":"https://api.github.com/users/fclaerho/gists{/gist_id}","starred_url":"https://api.github.com/users/fclaerho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fclaerho/subscriptions","organizations_url":"https://api.github.com/users/fclaerho/orgs","repos_url":"https://api.github.com/users/fclaerho/repos","events_url":"https://api.github.com/users/fclaerho/events{/privacy}","received_events_url":"https://api.github.com/users/fclaerho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-18T18:29:53Z","updated_at":"2015-08-18T18:29:53Z","closed_at":null,"body":"Ansible version: 1.9.2 (same issue since 1.8.2)\r\n\r\nEnvironment: OS/X\r\n\r\nSummary\r\nWhen using the \"pip\" module and \"state=absent\" to ensure a python module is not installed, the ansible pip module will fails if indeed the package is not installed, whereas it should simply succeed having nothing to do (in the same way that the \"apt\" module works, for instance).\r\n\r\nExample:\r\n[…]\r\nfailed: [127.0.0.1] => (item={'state': 'absent', 'name': 'pip-autoremove'}) => {\"cmd\": \"/usr/local/bin/pip uninstall -y pip-autoremove\", \"failed\": true, \"item\": {\"name\": \"pip-autoremove\", \"state\": \"absent\"}}\r\nmsg: \r\n:stderr: Cannot uninstall requirement pip-autoremove, not installed\r\n[…]"}}