I see now that I missed the delay argument in the wait for port. I already figured out the wait for stopped service.
Thanks a lot for the quick and clean responses from you both! Op donderdag 5 juni 2014 20:41:53 UTC+2 schreef Serge van Ginderachter: > > > On 5 June 2014 18:18, James Cammarata <[email protected] <javascript:>> > 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/46b0ea4a-bc56-427e-ad5e-2ee716551fc1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
