Error: - 192.168.43.216 | 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." } If you get above error message on Ansible controller that means your managed host are not added to known hosts. You can fix this issue in two way: - 1. Add " host_key_checking = false " in ansible.cfg( best practice ) [root@ansible ssh]# cat >> /etc/ansible/ansible.cfg host_key_checking = false Let's check if issue has been fixed, If I am getting "ping": "pong" response that mean the issue has been fixed. [root@ansible ssh]# ansible all -m ping 192.168.43.72 | SUCCESS => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": false, "ping": ...
Hello! Welcome to my Technical blog. My Name is Rakesh Kumar and I’ve more than 7 years of experience in Linux and Open Source technologies. If you are looking for technical information about Linux(Server Hardening, Diagnostics & Troubleshooting etc), Ansible, OpenStack Cloud Solution, Containers(K8s/OCP), DevOps, Machine Learning and Nagios Event Monitoring tool.... you have come to the right place. "I believe Learning and earning shouldn't stop", This is my story!