How to set host_key_checking=false in ansible inventory file?

前端 未结 6 584
清歌不尽
清歌不尽 2020-12-12 12:10

I would like to use ansible-playbook command instead of \'vagrant provision\'. However setting host_key_checking=false in the ho

6条回答
  •  误落风尘
    2020-12-12 13:09

    In /etc/ansible/ansible.cfg uncomment the line:

    host_key_check = False
    

    and in /etc/ansible/hosts uncomment the line

    client_ansible ansible_ssh_host=10.1.1.1 ansible_ssh_user=root ansible_ssh_pass=12345678
    

    That's all

提交回复
热议问题