Hi all,

Am trying to install nvm and PM2 from a playbook and I've hit a snag. One 
of the commands I need to run is to source the pm2 users .profile file. The 
issue is I don't seem to be able to do that from ansible (am using 1.9.1, 
in case that matters):

  - name: Source nvm profile
    command: source /home/pm2/.profile
    sudo: yes
    sudo_user: pm2


Results in:
TASK: [Source nvm profile] 
****************************************************
failed: [10.17.100.59] => {"cmd": "source /home/pm2/.profile", "failed": 
true, "rc": 2}
msg: [Errno 2] No such file or directory

FATAL: all hosts have already failed -- aborting


I've confirmed the /home/pm2/.profile file actually exists, anyone have any 
ideas how I can accomplish this? TIA!

D

-- 
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/169b4b13-701b-40df-b174-cbc04f02629c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to