Please find comments inline below:

On Mon, May 11, 2015 at 2:40 PM, Ivan Müller <[email protected]> wrote:

> Hi Yassen. I already solved it with that wrapper
> Code:
>
> - name: bundle install (install the rest of the gems)
>   shell: /usr/local/rvm/wrappers/default/bundle
>          chdir={{rails_app_path}}
>   sudo: false
>
> I just want to know how is the proper way to use ansible in this case,
> would be nice that ansible can  just detect the shell login on
> chdir={{rails_app_path}}, let me do just *bundle*
>
> *(if a go by ssh to the server and run just bundle that  works, why
> ansible cant do that?)*
>

Try with a full path to *bundle*. (You can get the full path via 'which
bundle' (no quotes)).

I am not a ruby guy, but I guess the reason it did not work is your path is
different in the two cases (ansible logs via ssh and you do by hand ... I
would expect that to be the case if bundle is in /usr/local/bin or
something.)



> Thanks for you time  and your answers :)
>

You are welcome! ;)
-Y.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACutfsj0S3uTOrf%3Doq45fEJ9VsrK_LEBFMf0WnfkQN5bJYr7gA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to