{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/16884","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/16884/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/16884/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/16884/events","html_url":"https://github.com/ansible/ansible/issues/16884","id":168466122,"number":16884,"title":"apt module: do not use aptitude","user":{"login":"Merifri","id":1499119,"avatar_url":"https://avatars.githubusercontent.com/u/1499119?v=3","gravatar_id":"","url":"https://api.github.com/users/Merifri","html_url":"https://github.com/Merifri","followers_url":"https://api.github.com/users/Merifri/followers","following_url":"https://api.github.com/users/Merifri/following{/other_user}","gists_url":"https://api.github.com/users/Merifri/gists{/gist_id}","starred_url":"https://api.github.com/users/Merifri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Merifri/subscriptions","organizations_url":"https://api.github.com/users/Merifri/orgs","repos_url":"https://api.github.com/users/Merifri/repos","events_url":"https://api.github.com/users/Merifri/events{/privacy}","received_events_url":"https://api.github.com/users/Merifri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-30T12:53:25Z","updated_at":"2016-09-13T03:58:41Z","closed_at":"2016-08-01T17:38:14Z","body":"##### ISSUE TYPE\r\n - Bug Report / Feature Idea\r\n\r\n##### ANSIBLE VERSION\r\n```console\r\n$ ansible --version\r\nansible 2.1.0.0\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\nUbuntu 16.04.1\r\n\r\n##### SUMMARY\r\nUbuntu 16 comes without `aptitude` package:\r\n```console\r\n \"Could not find aptitude. Please ensure it is installed.\"\r\n```\r\n##### STEPS TO REPRODUCE\r\nTasks with `upgrade` parameter fails: \r\n```console\r\n~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a \"upgrade=full\"\r\nlab.xxx | FAILED! => {\r\n    \"changed\": false, \r\n    \"failed\": true, \r\n    \"msg\": \"Could not find aptitude. Please ensure it is installed.\"\r\n}\r\n~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a \"upgrade=yes\"\r\nlab.xxx | FAILED! => {\r\n    \"changed\": false, \r\n    \"failed\": true, \r\n    \"msg\": \"Could not find aptitude. Please ensure it is installed.\"\r\n}\r\n~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a \"upgrade=full\"\r\nlab.xxx | FAILED! => {\r\n    \"changed\": false, \r\n    \"failed\": true, \r\n    \"msg\": \"Could not find aptitude. Please ensure it is installed.\"\r\n}\r\n~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a \"upgrade=safe\"\r\nlab.xxx | FAILED! => {\r\n    \"changed\": false, \r\n    \"failed\": true, \r\n    \"msg\": \"Could not find aptitude. Please ensure it is installed.\"\r\n}\r\n```\r\nOnly `upgrade=dist` work fine:\r\n```console\r\n~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a \"upgrade=dist\"\r\nlab.xxx | SUCCESS => {\r\n    \"changed\": false, \r\n    \"msg\": \"Reading package lists...\\nBuilding dependency tree...\\nReading state information...\\nCalculating upgrade...\\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\\n\", \r\n    \"stderr\": \"\", \r\n    \"stdout\": \"Reading package lists...\\nBuilding dependency tree...\\nReading state information...\\nCalculating upgrade...\\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\\n\", \r\n    \"stdout_lines\": [\r\n        \"Reading package lists...\", \r\n        \"Building dependency tree...\", \r\n        \"Reading state information...\", \r\n        \"Calculating upgrade...\", \r\n        \"0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\"\r\n    ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/246567008","html_url":"https://github.com/ansible/ansible/issues/16884#issuecomment-246567008","issue_url":"https://api.github.com/repos/ansible/ansible/issues/16884","id":246567008,"user":{"login":"Merifri","id":1499119,"avatar_url":"https://avatars.githubusercontent.com/u/1499119?v=3","gravatar_id":"","url":"https://api.github.com/users/Merifri","html_url":"https://github.com/Merifri","followers_url":"https://api.github.com/users/Merifri/followers","following_url":"https://api.github.com/users/Merifri/following{/other_user}","gists_url":"https://api.github.com/users/Merifri/gists{/gist_id}","starred_url":"https://api.github.com/users/Merifri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Merifri/subscriptions","organizations_url":"https://api.github.com/users/Merifri/orgs","repos_url":"https://api.github.com/users/Merifri/repos","events_url":"https://api.github.com/users/Merifri/events{/privacy}","received_events_url":"https://api.github.com/users/Merifri/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T03:58:41Z","updated_at":"2016-09-13T03:58:41Z","body":"@YPCrumble no, I found similar issue: https://github.com/ansible/ansible-modules-core/issues/3523"}}
{"actor":{"display_login":"Merifri"}}