ansible的错误

错误

[root@bogon ansible]# ansible test -m ping
192.168.16.155 | 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 yourknown_hosts file to manage this host."
}

 

解决办法

vi /etc/ansible/ansible.cfg
[defaults]
forks          = 8           #执行时并发数
host_key_checking = False    #不检测host key
posted @ 2019-06-26 22:01  木木霖  阅读(156)  评论(0编辑  收藏  举报