您的位置:首页 > 其它

ansible执行命令,提示输入yes/no

2016-07-27 17:24 1386 查看
执行 # ansible IP地址 -m command -a 'date'
paramiko: The authenticity of host '10.252.129.216' can't be established.
The ssh-rsa key fingerprint is cef5f02a439420eab5472a6384d14ddc.
Are you sure you want to continue connecting (yes/no)?

我不想输入yes或者no,取消这个提示,怎么办?

很简单,修改ansible.cfg的#host_key_checking= False取消注释,即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ansible