What's wrong with asserting that the service should be started? - systemd: name: httpd state: started
For the vast majority of cases that should work (the apache service in major distros being such a case). Sometimes you do get an edge case where the PID check in the unit file is not a good enough check for the health of the service as a whole. - Sandip -- https://blog.sandipb.net https://twitter.com/sandipb -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c2b53b98-d69a-646c-32c1-72046eb9c1e8%40showmethesource.org.
