I\'m using Ansible 1.5.4 to provision my Vagrant 1.4.3 box on Ubuntu 14.04 LTS.
I\'m getting the following error message in verbose mode:
Probably not your problem, but worth a shot: I was stalled on this, until I realized I added
host_key_checking = False
under a session that was not [defaults]
. Once I actually moved it to under [defaults]
, changed host keys did not stop anything anymore.
You'll need to set it via the Vagrantfile
of the project. When the Vagrant Ansible provisioner makes the call to ansible-playbook
it always sets the value of the ANSIBLE_HOST_KEY_CHECKING environment variable.
Ansible itself takes the value of the environment variable if present. Therefore Vagrant will override the value used in your ansible.cfg
.
Therefore you just need something like:
machine.vm.provision :ansible do |ansible|
ansible.host_key_checking = false
# etc.
end