TASK: [grails | install grails 2.3.7] *****************************************
failed: [default] => {"changed": true, "cmd": "gvm install grails 2.3.7", "delta": "0:00:00.003756", "end": "2014-11-30 17:43:51.951141", "rc": 127, "start": "2014-11-30 17:43:51.947385", "warnings": []}
stderr: /bin/bash: gvm: command not found
FATAL: all hosts have already failed -- aborting
So I now I rap all my shell calls in 'bash -lc' to get the remote user's
environment set-uip properly. For instance :
- shell: cd; bash -lc "rbenv install {{ ruby_version }}"
You could use the stat action as well which returns a handy exists boolean.
http://docs.ansible.com/stat_module.html
- stat: path=YOURPATH
register: grailsinstalled
- other_action: too
when: grailsinstalled.stat.exists
Typing on my phone, so please excuse typos :-)
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0c4abdcd-0fe1-4d94-8312-5a56f1d5c20b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.