Ansible provisioning ERROR! Using a SSH password instead of a key is not possible

后端 未结 5 1428
深忆病人
深忆病人 2021-02-04 01:31

I would like to provision with my three nodes from the last one by using Ansible.

My host machine is Windows 10.

My Vagrantfile looks like:



        
5条回答
  •  旧时难觅i
    2021-02-04 01:56

    Create a file ansible/ansible.cfg in your project directory (i.e. ansible.cfg in the provisioning_path on the target) with the following contents:

    [defaults]
    host_key_checking = false
    

    provided that your Vagrant box has sshpass already installed - it's unclear, because the error message in your question suggests it was installed (otherwise it would be "ERROR! to use the 'ssh' connection type with passwords, you must install the sshpass program"), but in your answer you add it explicitly (sudo apt-get install sshpass), like it was not

提交回复
热议问题