問題描述:服務器
[root@iZm5e79rtwsq2hm57teyk5Z ansible]# ansible aofeng -f 5 -m ping 192.168.1.106 | FAILED! => { "failed": true, "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." } [root@iZm5e79rtwsq2hm57teyk5Z ansible]
host_key_checking = False默認是註釋掉的
打開 host_key_checking = False的註釋。一樣也能夠實現跳過 ssh 首次鏈接提示驗證部分。ssh