-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
Description
On Vagrant I get the error:
fatal: [master1]: FAILED! => {"failed": true, "msg": "'ansible_port' is undefined"}
it looks like vagrant ansible provisioner doesn't apply changes which has been added to ansible 2.0
Ansible 2.0 has deprecated the “ssh” from ansible_ssh_user, ansible_ssh_host, and ansible_ssh_port to become ansible_user, ansible_host, and ansible_port.
so inventory file crated by vagrant
.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
uses old variables:
master1 ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222 ansible_ssh_user='core' ansible_ssh_private_key_file='/Users/apollo/.vagrant.d/insecure_private_key'
It looks like they are trying to fix it in Vagrant repository, more info here