{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/29633","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/29633/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/29633/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/29633/events","html_url":"https://github.com/ansible/ansible/issues/29633","id":256785993,"number":29633,"title":"apt force with deb doesn't force","user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"labels":[{"id":437720635,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.1","name":"affects_2.1","color":"5319e7","default":false},{"id":785271699,"url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":496359346,"url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":636352796,"url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-11T17:41:43Z","updated_at":"2018-03-19T15:44:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"From @oppianmatt on 2016-09-26T13:32:28Z\r\n##### ISSUE TYPE\n- Bug Report\n##### COMPONENT NAME\n\napt\n##### ANSIBLE VERSION\n\n```\nansible 2.1.1.0\n  config file = /home/jenkins/ansible/ansible.cfg\n  configured module search path = Default w/o overrides\n```\n##### CONFIGURATION\n##### OS / ENVIRONMENT\n\nUbuntu\n##### SUMMARY\n\nTrying to force install a deb file doesn't (always) work.\n##### STEPS TO REPRODUCE\n\nCustom built nginx deb and install it. Then change some of the included modules, and create another custom deb for that nginx. Now try install it via ansible and force.\n\n```\n  - name: install nginx pagespeed\n    apt: >\n      deb={{ nginx_pagespeed_deb_url }}\n      dpkg_options='force-confold,force-confdef'\n      force=yes\n```\n\nI suspect that because the deb has the same header (and version) as the existing deb ansible is refusing to say changed. The contents of the deb has changed with regards to what modules were compiled in, but the version is the same.\n##### EXPECTED RESULTS\n\nExpected deb to be installed as if I did `dpkg -i file.deb`\n\nAnd to see ansible emit the changed message.\n\nChanged.\n##### ACTUAL RESULTS\n\n```\nok: [host2.example.org] => {\"changed\": false, \"diff\": \"\", \"invocation\": {\"module_args\": {\"allow_unauthenticated\": false, \"autoremove\": false, \"cache_valid_time\": null, \"deb\": \"/tmp/ansible_mj0640/nginx_1.11.1-1_amd64.deb\", \"default_release\": null, \"dpkg_options\": \"force-confold,force-confdef\", \"force\": true, \"install_recommends\": null, \"only_upgrade\": false, \"package\": null, \"purge\": false, \"state\": \"present\", \"update_cache\": false, \"upgrade\": null}, \"module_name\": \"apt\"}, \"stderr\": \"\", \"stdout\": \"\", \"stdout_lines\": []}\n\n```\n\r\nCopied from original issue: ansible/ansible-modules-core#5004\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/374259168","html_url":"https://github.com/ansible/ansible/issues/29633#issuecomment-374259168","issue_url":"https://api.github.com/repos/ansible/ansible/issues/29633","id":374259168,"user":{"login":"mkrizek","id":1215518,"avatar_url":"https://avatars2.githubusercontent.com/u/1215518?v=4","gravatar_id":"","url":"https://api.github.com/users/mkrizek","html_url":"https://github.com/mkrizek","followers_url":"https://api.github.com/users/mkrizek/followers","following_url":"https://api.github.com/users/mkrizek/following{/other_user}","gists_url":"https://api.github.com/users/mkrizek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkrizek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkrizek/subscriptions","organizations_url":"https://api.github.com/users/mkrizek/orgs","repos_url":"https://api.github.com/users/mkrizek/repos","events_url":"https://api.github.com/users/mkrizek/events{/privacy}","received_events_url":"https://api.github.com/users/mkrizek/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T15:44:49Z","updated_at":"2018-03-19T15:44:49Z","author_association":"CONTRIBUTOR","body":"@oppianmatt is this still an issue with the recent version of ansible?\r\n\r\nneeds_info"}}
{"actor":{"display_login":"mkrizek"}}