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

Provisioning with ansible fails #34

Closed
mAAdhaTTah opened this issue Sep 8, 2014 · 5 comments
Closed

Provisioning with ansible fails #34

mAAdhaTTah opened this issue Sep 8, 2014 · 5 comments

Comments

@mAAdhaTTah
Copy link

I get an error saying ansible is not installed when running vagrant up, although it works fine from my command line.

@iabudiab
Copy link

@mAAdhaTTah I think that your shell isn't /bin/bash, am I right?

I get the same error despite having ansible in my PATH, which is defined in my ~/.zprofile
Vagrant commands are launched via NSTask with /bin/bash as launch command, see Vagrant Manager/AppDelegate.m:217 method: - (void)runVagrantAction:withMachine:

NSTask executes a new subprocess which doesn't involve the user's interactive shell.

I maybe wrong here, just speculating from what I've experienced so far.

@mAAdhaTTah
Copy link
Author

It's still bash, but I downloaded the updated version via Homebrew. Don't know if that changes anything though.

@cognitom
Copy link

I've got the same error, too. ansible is installed on my Mac by homebrew. But it seems that the commands under /usr/local/bin/ are ignored.

A temporary solution is making a symbolic link under /usr/bin/. It just works.

$ sudo ln -s /usr/local/bin/ansible-playbook /usr/bin/ansible-playbook

@chriswayoub
Copy link
Member

Version 2.2.0 now executes bash as a login shell, which should respect your .bash_profile

@cognitom
Copy link

cognitom commented Jan 9, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants