I can start this script manually and everything is fine.
If I start it using the Ansible shell module, the playbook "hangs" and will not return. I tried to use the "command" Module instead, but it is still the same.
I than read about the "async" and "poll" options - but I cannot use async [time] - because the process started will live as long as it is stopped manually.
What is recommended here? Is there a way to use the existing shell script - or do we need to modify that script ?
Any help appreciated,
Torsten
Brian Coca
unread,
Dec 12, 2014, 9:26:34 AM12/12/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
One solution it to write a proper initscript/upstart/systemd
configuration. Another is to use something like
supervisor/daemontools/runit/monit.
But if you want to continue as is with the least change try adding
nohup infront of the listner line, ansible is probably getting stuck
because the listener is not properly detaching.