Red Hat Bugzilla – Bug 1307059
dnf: state=latest does not install a package
Last modified: 2016-07-19 15:24:35 EDT
Description of problem:
When installing packages with ansible-playbook, new packages are not installed with state=latest
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a task and install package not yet installed on a system with state=latest
new package is not installed
new package is installed and the latest
Upstream issues , PR with fix 
Relevant for 23 and rawhide too.
Kevin, since we have ansible-2.0 sitting in the updates-testing repo... how would we want to get this fix applied to any fedor apackage? (i'll put it into the ansible1.9 package when we get it built but that will only be for epel6/7?)
So, options are:
1. Just fix in 2.0.0.x. Jan: would this be ok for you? or do you need a fix in 1.9.x?
2. Push ansible1.9 to fedora branches too, but I think thats a mess and something to avoid, since it's going to be so short lived and it would be difficult to communicate to fedora users to switch to it if they needed.
3. Unpush 2.0.0.x from testing, revert git to 1.9.4, apply fix, build and push new 1.9.4 build, get to stable, revert git to 2.0 and push new 2.0.0.x out. This is bad because we have to play with all kinds of git reverting, but also because 2.0.0.x will become unavailable for testers while fixed 1.9.x is in testing. So, not a great solution.
Not seeing much else... I hope that Jan would be ok switching to a fixed 2.0. ;)
As long as it gets fixed in F22+, 2) is fine :).
Fedora update for 2.0.* talks about backward incompatibilities with 1.9. Have you managed to fix that?
The cases where 2.0.x is incompatible with 1.9.x are either bugs (and upstream is fixing them quickly in 2.0.0.x patches) or cases where the behavior in 1.9 was wrong as well but ansible wasn't able to detect it.
I encourage you to go test 2.0 for your playbooks and report any incompatibilities...
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.