On 06.12.2016 05:11, Mumshad Mannambeth wrote:
I would like to restart a server and wait till the services start up. I
can
us the wait_for module to wait for ports to be up, but how can I wait
for
the services to be up? The service modules seem to start,stop or
restart
service, but I don't want to do any of these operations. Only wait till
services are up. On linux I am able to run a command and loop until it
returns true. But is there a direct support for this in Ansible or the
Services module?
Check out until
https://docs.ansible.com/ansible/playbooks_loops.html#do-until-loops
--
Kai Stian Olstad
--
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/17a6b21ef2f20b89550dca6f4eb27ba8%40olstad.com.
For more options, visit https://groups.google.com/d/optout.