never mind , is working i just want to know if is a proper way to write that... i dont like to write the full path of bundle, because each app will have a different one (that way i use RVM), i want to write something generic
El lunes, 11 de mayo de 2015, 16:24:15 (UTC+2), Yassen Damyanov escribió: > > Please find comments inline below: > > On Mon, May 11, 2015 at 2:40 PM, Ivan Müller <[email protected] > <javascript:>> 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/e95b65ac-de55-4bf4-ae43-3de75ae4c99a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
