Hi,
I cannot ping target1 VM using ansible because of error.
After writing “ansible target1 -m ping -i inventory.txt” I am getting following response:
target1 | 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.”}
I need help ASAP.
It’s from the course " [Ansible for the Absolute Beginner - Hands-On - DevOps]" - “Section 3: Ansible Inventory” - “10. Demo - Ansible Inventory”
Thanks!