On 5 June 2014 18:18, James Cammarata <[email protected]> wrote:

> I'm guessing that what's going on here is that you're rebooting, but
> during the shutdown the mysql service is still running and port 3306 is up,
> so that when it gets to the wait_for task it succeeds and moves on. You may
> either want to add in a pause there before the wait_for, or you can add in
> a delay to the wait_for to cause it to delay its first polling attempt.


​Or do a wait_for state=stopped and then the same but with state=started.

If you want to check on a particular name in the process list to go away,
then to re-appear, you might want to have a look at this module:



https://github.com/ginsys/ansible-plugins/blob/devel/library/check_process



Serge

    ​

-- 
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/CAEhzMJCvo7wQ1chSpftpFgrqFA6H7PSNBkOLGEs8JMGmSOaC0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to