ansible ssh prompt known_hosts issue

前端 未结 7 1244
甜味超标
甜味超标 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

提交回复
热议问题