ansible报错UsingaSSHpasswordinsteadofakeyisnotp。。。
安装和配置好ansible,执⾏命令时报错如下
[root@test01 ansible-install]# ansible test -m shell -a 'w'
宝宝发烧怎么办<37.26 | FAILED | rc=-1 >>
香奈儿散粉矛盾的含义Using a SSH password instead of a key is not possible becau Host Key checking is enabled and sshpass does not support this. Plea add this host's fingerprint to your known_hosts file to manage this host.
<37.25 | FAILED | rc=-1 >>
Using a SSH password instead of a key is not possible becau Host Key checking is enabled and sshpass does not support this. Plea add this host's fingerprint to your known_hosts file to manage this host.机电设备维修>有趣的文章>有关坚持的名人名言
<37.24 | FAILED | rc=-1 >>
Using a SSH password instead of a key is not possible becau Host Key checking is enabled and sshpass does not support this. Plea add this host's fingerprint to your known_hosts file to manage this host.
解决⽅法:
vi /etc/ansible/ansible.cfg
青椒肉丝的做法
[defaults]
蓝朝部落forks = 8 #执⾏时并发数
host_key_checking = Fal #不检测host key