ansible关闭公钥认证的两种方法

关闭公钥认证的方法有两种:
- 1.编辑ansible.cfg配置文件(默认在/etc/ansible中)

[defaults]
host_key_checking = False

-2.直接设置环境变量

vim /etc/profile
export ANSIBLE_HOST_KEY_CHECKING=False

source
/etc/profile
posted @ 2023-03-07 09:39  潇潇暮鱼鱼  阅读(167)  评论(0)    收藏  举报