Skip to content

Instantly share code, notes, and snippets.

@kris-luminar
Created July 11, 2013 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kris-luminar/5975027 to your computer and use it in GitHub Desktop.
Save kris-luminar/5975027 to your computer and use it in GitHub Desktop.
Can't source a .bash_profile file This file exists but when I call source on it it fails. When I source it inside the remote machine called 'charley' using the same 'vagrant' user, the source command can't seem to find the file.
~/Downloads/ansible
☻ ansible charley -a 'ls -la /home/vagrant/.bash_profile' -u vagrant devel 714cb02 ✗
192.168.14.133 | success | rc=0 >>
-rw-rw-r-- 1 vagrant vagrant 118 Jul 10 13:21 /home/vagrant/.bash_profile
~/Downloads/ansible
☻ ansible charley -a 'source /home/vagrant/.bash_profile' -u vagrant devel 714cb02 ✗
192.168.14.133 | FAILED | rc=2 >>
[Errno 2] No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment