一、检查playbook脚本
ansible-playbook --check xxx.yml
二、报错解决办法
1.报错:
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.
解决办法:
/etc/ansible/ansible.cfg文件中将”#host_key_checking = False”前面的“#”注释去掉。
参考琼杰笔记:
评论前必须登录!
注册