Hmm. I must be making again something fundamentally wrong :)

Trying to start a simple node server app into background


    - name: Start server (run as non-privileged user)
      tags: server
      shell: |
        nohup node server.js 2>&1 &
      args:
        chdir: my-server-dir
      become: yes
      become_user: "{{ non_root_user }}"

This runs w/o problems. However, the service is not started...

Running the same command from console works...

It doesn't even run as "sudo" (if f I remove the "become" lines at the end, 
my entire script runs as sudo)



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7a4f5cee-091b-444c-a265-0a584afadb3fn%40googlegroups.com.

Reply via email to