Installation toolkit Ansible package troubleshooting if it fails for already installed ansible for Red Hat Enterprise Linux® 9.0 and >= Red Hat Enterprise Linux 8.6
Red Hat Enterprise Linux® 9.0 and >= Red Hat Enterprise Linux 8.6 node has ansible-core package in
the repository by default. If the user installs ansible using yum/dnf
then it takes
ansible from appstream repository itself. But, it does not work with ansible-toolkit as the
installed ansible core has very basic functionality and does not have additional collection and
module that is used in the ansible code.
So, if the user wants to use repository based ansible-core and do not want to remove installed
ansible package to use toolkit shipped ansible package, then the user can install required ansible
collection through ansible-galaxy
command:
ansible-galaxy collection install community.general
ansible-galaxy collection install ansible.posix