source is specifically a BASH builtin, you might want to set your executable to /bin/bash or make it part of the task, for sh use "." to source
On Fri, Jun 19, 2015 at 1:20 PM, Dean Mills <[email protected]> wrote: > I get a slightly different error now: > > TASK: [Source nvm profile] > **************************************************** > failed: [10.17.100.59] => {"changed": true, "cmd": "source > /home/pm2/.profile", "delta": "0:00:00.001528", "end": "2015-06-19 > 17:18:58.307304", "rc": 127, "start": "2015-06-19 17:18:58.305776", > "warnings": []} > stderr: /bin/sh: 1: source: not found > > FATAL: all hosts have already failed -- aborting > > > > On Friday, June 19, 2015 at 2:13:39 PM UTC-3, Brian Coca wrote: >> >> use shell: module,e, source is a built in which you cannot use unless >> you invoke it from a shell. >> >> >> >> >> -- >> Brian Coca > > -- > 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/0f088d02-6917-4844-96d5-55da0f5a69d1%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Brian Coca -- 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/CAJ5XC8%3DE2u6x5wSDbMc67KqBB2gdNCPpUNqygoFcG5Yj2v-EAA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
