Using ansible to launch a long running process on a remote host -


i'm new ansible. i'm trying start process on remote host using simple ansible playbook.

here how playbook looks like

-   hosts: somehost   gather_facts: no   user:  ubuntu     tasks:     - name: change directory , run jetty server       shell: cd /home/ubuntu/code; nohup ./run.sh           async: 45 

run.sh calls java server process few parameters. understanding using async process on remote machine continue run after playbook has completed (which should happen after around 45 seconds.)

however, playbook exits process started run.sh on remote host terminals well.

can explain what's going , missing here.

thanks.

give longer time async 6 months or year or evenmore , should fine. or convert process initscript , use service module.

and add poll: 0


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -