hosts配置密码登陆
```
[xxx]
192.168.23.55 ansible_ssh_user=root ansible_ssh_pass=123456
```
测试连通性
`ansible all -i ./hosts -m ping`
报错
~~~
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.
~~~
解决方法:
~~~
vi /etc/ansible/ansible.cfg
[defaults]
host_key_checking = False #不检测host key
~~~