Description of problem: Ansible's dnf module displays "skipping" instead of "changed" as status, when installing or removing packages (although it performs the requested action). Version-Release number of selected component (if applicable): 2.0.2.0-1.fc23 How reproducible: Steps to Reproduce: I'm using Ansible with something like this in a role task: - name: install devel packages dnf: name={{ item }} state=present with_items: - vim-enhanced - git-all - mercurial - name: enable COPR for CentOS Packager command: dnf -y copr enable bstinson/centos-packager - name: install tools for CentOS development dnf: name=centos-packager state=present - name: remove unwanted packages dnf: name={{ item }} state=absent with_items: - midori - abiword - gnumeric - name: install office packages dnf: name={{ item }} state=present with_items: - @LibreOffice - gnucash Actual results: When running ansible-playbook on a freshly installed F23 XFCE Spin, it installs and removes the packages as requested (I checked via "dnf list installed <package>"), but it displays "skipping" as a result, instead of "changed". The only package for which it displays the correct status as "changed" is centos-packager (all the other ones come from the official F23 repos and return "skipping"). If I run ansible-playbook again, it displays "ok" for all packages, as expected. Expected results: The status should be "changed" when packages were installed or removed, just like in previous versions of Ansible (both 1.9.x and 2.0.x). Additional info:
This is I think https://github.com/ansible/ansible/issues/15211 upstream. It's already fixed in devel and will be fixed in the upcoming 2.1 release. Since 2.1 is going to come out pretty soon, I'd prefer to just wait for that rather than backporting.
Thanks. I had thought it's a bug in the dnf module, so I only looked at the list of upstream issues in ansible-modules-extra.
ansible-2.1.0.0-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1f9a2eb8d7
ansible-2.1.0.0-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-d31dacfabf
ansible-2.1.0.0-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5a1e887dfc
ansible-2.1.0.0-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-aceff68672
ansible-2.1.0.0-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9b87ab9c77
ansible-2.1.0.0-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-9b87ab9c77
ansible-2.1.0.0-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-aceff68672
ansible-2.1.0.0-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1f9a2eb8d7
ansible-2.1.0.0-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-d31dacfabf
ansible-2.1.0.0-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5a1e887dfc
ansible-2.1.0.0-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.1.0.0-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.1.0.0-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.1.0.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.1.0.0-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.