“msg“: “Using a SSH password instead of a key is not possible because Host Key checking is enabled a

ansible问题:

"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."
}

解决办法 vim  /etc/ansible/ansible.cfg

host_key_checking = False

然后就可以了

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页