Right way to wait for service start

2,736 views
Skip to first unread message

Mumshad Mannambeth

unread,
Dec 5, 2016, 11:11:33 PM12/5/16
to Ansible Project
Hi,

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?

Thanks

Kai Stian Olstad

unread,
Dec 8, 2016, 1:56:43 AM12/8/16
to ansible...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages