分享交流
合作共赢!

Ansible基础使用方法总结【一】

一、检查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”前面的“#”注释去掉。

参考琼杰笔记:

Ansible基础使用方法总结【二】

赞(2) 打赏
未经允许不得转载:琼杰笔记 » Ansible基础使用方法总结【一】

评论 抢沙发

评论前必须登录!

 

分享交流,合作共赢!

联系我们加入QQ群

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏

登录

找回密码

注册