-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
vagrant cannot find Ansible #6868
Comments
I have the same problem. I think it's because the ansible-galaxy command (which is called with the ansible_local provisioner to detect ansible) now exits with a non-zero code when passed the --help option. As a workaround, I'm going to try using the shell provisioner to install an older version of ansible and set ansible.install to false (not tested yet tho). |
If I comment out the following line in: \embedded\gems\gems\vagrant-1.8.1\plugins\provisioners\guest.rb:54 @machine.communicate.execute(
"ansible-galaxy --help && ansible-playbook --help",
:error_class => Ansible::Errors::AnsibleNotFoundOnGuest,
:error_key => :ansible_not_found_on_guest) then it works |
Yeah I see the same thing. |
I think this is really an ansible bug so I've raised ansible/ansible#13833. |
Closing as it duplicates #6793. |
Seeing this error this morning when trying to bring up a new box which uses the ansible_local provisioner.
I tried manually installing ansible via apt and provisioning again but get the same error.
This exact env was working fine yesterday.
Is this possibly caused by the V2 release of ansible?
The text was updated successfully, but these errors were encountered: