Why Yum Module With "state:latest" & "update_only:yes" Shows Contradicting Output ?
Environment
- Ansible 2.9.x
- RHEL 7
Issue
-
When the update_only parameter is set to yes with the yum module and state has set to latest. Shows the below output results while it does update the package to the latest version.
"All packages providing "<package_name>" are up to date",
Resolution
- There is already an issue filled in the Ansible repository. The issue could be tracked here : Bug
Diagnostic Steps
-
You can test the scenario with a sample playbook task like below:
- name: Install the latest package yum: name: <package_name> state: latest update_only: yes
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments