vagrant-ansible icon indicating copy to clipboard operation
vagrant-ansible copied to clipboard

No such file or directory

Open josh-wrale opened this issue 11 years ago • 7 comments

I tried the procedure in the readme.md file today on Fedora 17 with the latest Vagrant RPM and a 'vagrant gem install vagrant-ansible'. The install was vagrant-ansible-0.0.5.

Here's the problem:

http://pastebin.com/raw.php?i=8JzjRL8U

Please let me know if you have any questions.

-Joshua

josh-wrale avatar Feb 28 '13 18:02 josh-wrale

Same problem for me

mavimo avatar Mar 10 '13 14:03 mavimo

Works fine for me. Are you sure ansible-playbook is in your path ? If you run ansible from git with source ./hacking/env-setup it won't work.

leucos avatar Mar 10 '13 14:03 leucos

@leucos confirm that I miss to run env-setup.. n00b error, sorry :P

mavimo avatar Mar 10 '13 15:03 mavimo

NP @mavimo . Does't it run if you source env-setup first ? Not sure env is preserved with vagrant's safe_exec. You might have to install ansible system wide.

leucos avatar Mar 10 '13 15:03 leucos

@leucos it works.

marco@supernova:~/Development/agavee/servers |master ✗ | » source ../../ansible/ansible/hacking/env-setup 
PATH=/home/marco/Development/ansible/ansible/bin:/home/marco/.rvm/gems/ruby-1.9.3-p194@agavee-servers/bin:/home/marco/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/marco/.rvm/rubies/ruby-1.9.3-p194/bin:/home/marco/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PYTHONPATH=/home/marco/Development/ansible/ansible/lib:
ANSIBLE_LIBRARY=/home/marco/Development/ansible/ansible/library
MANPATH=/home/marco/Development/ansible/ansible/docs/man:
Reminder: specify your host file with -i
Done.
marco@supernova:~/Development/agavee/servers |master ✗ | » vagrant up

and it works ;)

mavimo avatar Mar 10 '13 15:03 mavimo

Great ! May be @josh-wrale had the same problem ?

leucos avatar Mar 10 '13 15:03 leucos

Our problem is same as @josh-wrale, and i solve updating path,

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

Platform: MAC OS X 10.8.4

seyyah avatar Aug 15 '13 13:08 seyyah