Ansible failed because of undefined ansible_port
- Dominant language
- Python
- Stars
- 718
- Forks
- 100
- PR merge metrics
- No merged PRs in 30d
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](https://github.com/mitchellh/vagrant/issues/6570)
Contributor guide
Assessment
This issue has not been assessed yet.