After installing ansile please amend
# vim /etc/ansible/ansible.cfg
IN FEDORA
Uncomment:
host_key_checking = False
or else we might see error
fatal: [192.168.122.53]: FAILED! => {"msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and
sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host."}
IN UBUNTU
[defaults]
host_key_checking = False
Please install this so ansible galaxy semanage can work in remotehost
python3-libsemanage
if you see sshpass needed then it must be installed in the host machine not in remote
Or install sshpass in local machine
# dnf install sshpass
# apt install sshpass