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

猜你喜欢

转载自www.cnblogs.com/lulin9501/p/11094175.html