ansible ssh prompt known_hosts issue

前端 未结 7 1246
甜味超标
甜味超标 2020-12-23 16:25

I\'m running Ansible playbook and it works fine on one machine.

On a new machine when I try for the first time, I get the following error.

17:04:34          


        
相关标签:
7条回答
  • 2020-12-23 17:18

    you can also set this from the server os level. you will need to configure the ssh config file in order to avoid ssh check to prompt:

    edit the file path:

    /etc/ssh/ssh_config
    

    now uncomment the line:

    StrictHostKeyChecking no
    

    save the changes and that's it

    Warning: The host (and also Ansible) will not perform anymore SSH host key verification to any ssh connections with the above settings. This can be risk and not recommended in production environments

    0 讨论(0)
提交回复
热议问题