如何忽略ansible SSH真实性检查? - How to ignore ansible SSH authenticity checking?

10/17 02:53
阅读数 0

问题:

Is there a way to ignore the SSH authenticity checking made by Ansible?有没有办法忽略 Ansible 进行的 SSH 真实性检查? For example when I've just setup a new server I have to answer yes to this question:例如,当我刚刚设置了一个新服务器时,我必须对这个问题回答是:

GATHERING FACTS ***************************************************************
The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established.
RSA key fingerprint is xx:yy:zz:....
Are you sure you want to continue connecting (yes/no)?

I know that this is generally a bad idea but I'm incorporating this in a script that first creates a new virtual server at my cloud provider and then automatically calls my ansible playbook to configure it.我知道这通常是一个坏主意,但我将其合并到一个脚本中,该脚本首先在我的云提供商处创建一个新的虚拟服务器,然后自动调用我的 ansible playbook 来配置它。 I want to avoid any human intervention in the middle of the script execution.我想避免在脚本执行过程中进行任何人为干预。


解决方案:

参考一: https://en.stackoom.com/question/2BW2i
参考二: https://stackoom.com/question/2BW2i
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部