From 3b562aa367b747c6557ac97ca71dbc065a684a09 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 17 Aug 2012 20:35:43 -0400 Subject: [PATCH] add service pattern= parameter --- rst/modules/service.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rst/modules/service.rst b/rst/modules/service.rst index e9fab2cb06..f94f29d103 100644 --- a/rst/modules/service.rst +++ b/rst/modules/service.rst @@ -14,12 +14,19 @@ Controls services on remote machines. | | | | idempotent actions that will not run commands unless neccessary. | | | | | 'restarted' will always bounce the service, 'reloaded' will always reload. | +--------------------+----------+---------+----------------------------------------------------------------------------+ +| pattern | no | | (new in 0.7) if the service does not respond to the status command, | +| | | | name a substring to look for as would be found in the output of the 'ps' | +| | | | command as a stand-in for a status result. If the string is found, the | +| | | | service will be assumed to be running. | ++--------------------+----------+---------+----------------------------------------------------------------------------+ | enabled | no | | Whether the service should start on boot. Either 'yes' or 'no'. | +--------------------+----------+---------+----------------------------------------------------------------------------+ -Example action from Ansible :doc:`playbooks`:: +Example actions from Ansible :doc:`playbooks`:: service name=httpd state=started service name=httpd state=stopped service name=httpd state=restarted service name=httpd state=reloaded + service name=foo pattern=/usr/bin/foo state=started +