关闭公钥认证的方法有两种:
- 1.编辑ansible.cfg配置文件(默认在/etc/ansible中)
[defaults]
host_key_checking = False
-2.直接设置环境变量
标签:profile,公钥,认证,etc,ansible,关闭 From: https://www.cnblogs.com/xiaoxiaomuyuyu/p/17186998.htmlvim /etc/profile export ANSIBLE_HOST_KEY_CHECKING=False
source/etc/profile