Why the Ansible module yum is using /usr/bin/dnf instead of /usr/bin/yum?
Issue
- Why the Ansible module yum is using /usr/bin/dnf instead of /usr/bin/yum?
# ansible -m setup rhel6.example.com -a 'filter=ansible_pkg_mgr'
rhel6.example.com | SUCCESS => {
"ansible_facts": {
"ansible_pkg_mgr": "dnf",
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false
}
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Ansible 2.8.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.