Can you clarify about what you mean by the PATH is not being set
correctly? Ansible does not modify the path at all.
The shell module executes things through the actual shell.
If you want to set the PATH through the shell, you set it with
PATH=foo prefixing the command, just like you can do in the normal
shell.
"ruby_path:/binary" looks completely foreign to me.
--Michael
Toby_Hede
(Toby Hede)
October 18, 2012, 10:02pm
2
I think I transposed my action poorly.
I am basically using the full path to the required binaries
action shell chdir=$app_path /usr/local/ruby/bin/bundle
If I leave off the full path, the user that ansible is running under can’t find the “bundle” exec.
Working with some inherited chef stuff that explicitly runs using full paths, but wondering what the idiomatic ansible is. Is there a way to set the path once for ansible?
Toby_Hede
(Toby Hede)
October 22, 2012, 10:32pm
4
That’s what I figured I needed to do, but for some reason the Ansible shell agent just doesn’t pick up the bash_profile.
I will keep playing, at least I know I am on the right track. Cheers.