Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible failed because of undefined ansible_port #714

Open
ravbaba opened this issue Sep 30, 2016 · 0 comments
Open

Ansible failed because of undefined ansible_port #714

ravbaba opened this issue Sep 30, 2016 · 0 comments
Labels

Comments

@ravbaba
Copy link
Contributor

ravbaba commented Sep 30, 2016

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

@ravbaba ravbaba added the bug label Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant