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

Question:

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:

My playbook looks like:

My hosts file looks like:

After executing vagrant up --provision I got the following error:

I extended my Vagrantfile with ansible.limit = :all and added [all:vars] to the hostfile, but still cannot get through the error.

Has anyone encountered the same issue?

Answer:

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:

Leave a Reply