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
然后就可以了
本文解决了一个常见的Ansible问题,即使用SSH密码而非密钥进行主机验证时遇到的错误。通过禁用host_key_checking参数,可以绕过HostKey检查,实现对目标主机的有效管理。
4363

被折叠的 条评论
为什么被折叠?



