Commit f81000c1 by Michael DeHaan

Document list on service module

parent 8559f016
...@@ -49,7 +49,7 @@ install a specific version of the foo package. ...@@ -49,7 +49,7 @@ install a specific version of the foo package.
*state*: *state*:
* Can be either 'installed', 'removed', or 'latest'. The default is 'installed'. * Can be either 'installed', 'removed', or 'latest'. The default is 'installed'. (In 0.4 and later, the aliases 'absent' and 'present' can also be used. They correspond with 'removed' and 'installed')
*update-cache*: *update-cache*:
...@@ -360,6 +360,10 @@ Controls services on remote machines. ...@@ -360,6 +360,10 @@ Controls services on remote machines.
* (new in 0.4) Whether the service should start on boot. Either 'yes' or 'no'. * (new in 0.4) Whether the service should start on boot. Either 'yes' or 'no'.
Uses chkconfig or updates-rc.d as appropriate. Uses chkconfig or updates-rc.d as appropriate.
*list*:
* (new in 0.4) When used with the value 'status', returns the status of the service along with other results. This is primarily useful for /usr/bin/ansible, and not meaningful for playbooks.
*name*: *name*:
* The name of the service. * The name of the service.
...@@ -370,7 +374,6 @@ Example action from Ansible :doc:`playbooks`:: ...@@ -370,7 +374,6 @@ Example action from Ansible :doc:`playbooks`::
service name=httpd state=stopped service name=httpd state=stopped
service name=httpd state=restarted service name=httpd state=restarted
.. _setup: .. _setup:
setup setup
...@@ -648,7 +651,7 @@ Will install, upgrade, remove, and list packages with the yum package manager. ...@@ -648,7 +651,7 @@ Will install, upgrade, remove, and list packages with the yum package manager.
*state*: *state*:
* Can be either 'installed', 'latest', or 'removed'. The default is 'installed'. * Can be either 'installed', 'latest', or 'removed'. The default is 'installed'. (In 0.4 and later, the aliases 'absent' and 'present' can also be used. They correspond with 'removed' and 'installed')
*list*: *list*:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment