Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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.
☻ ansible charley -a 'ls -la /home/vagrant/.bash_profile' -u vagrant devel 714cb02 ✗ | success | rc=0 >>
-rw-rw-r-- 1 vagrant vagrant 118 Jul 10 13:21 /home/vagrant/.bash_profile
☻ ansible charley -a 'source /home/vagrant/.bash_profile' -u vagrant devel 714cb02 ✗ | 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
You can’t perform that action at this time.