Evening,
I am trying to keep a spawn process that normally attaches to process id 1 wheb running. However because ansible kills all entries in a process group i have been told to use async.
However do i wait for the async process to complete before starting the next task? Does setting a poll time of 0 ensure that the task is completed before the next task has started, or does it just run it as a background task forever without reporting it state.
Reason for asking is that i am trying to start a weblogic process that detaches to process 1 but shell/command detaches it the root process group. Nohup returns straight away and starts the next task which is dependant on the previous task running.
Any ideas on the best way to do this?
Regards
Nicholas Irving
Brian
You are missing the point.
If i run a command on the server and it decides to become a background process then when i run that same command via ansible the outcome should be the same. I should not have to code around the issue because ansible spawns and kills process groups.
I expect ansible to be a like for like replacement of me running the commands direct on the server. Otherwise i have to compromise and rewrite the delivery of a service that has been working for years.
I understand where you are coming from, but when you are dealing with an imperfect world where people say but i can do it this way, it makes ansible a hard sell if it is hard to use.
Regards
Nicholas Irving
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3DfXTrJzM-4g2CcoHOQtasQ9sOJ_4Dupp3gMjwF1v%3DSfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9e182cb7-e345-470e-9e93-6b12967b85b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.