setting/accessing PATH

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

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?

Setting it once?

http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html

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.