mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Add service state=reloaded
This commit is contained in:
parent
b896157d61
commit
340faa5fde
1 changed files with 4 additions and 2 deletions
|
@ -346,9 +346,10 @@ Controls services on remote machines.
|
||||||
|
|
||||||
*state*:
|
*state*:
|
||||||
|
|
||||||
* Values are ``started``, ``stopped``, or ``restarted``.
|
* Values are ``started``, ``stopped``, ``reloaded``, or ``restarted``.
|
||||||
Started/stopped are idempotent actions that will not run commands
|
Started/stopped are idempotent actions that will not run commands
|
||||||
unless necessary. ``restarted`` will always bounce the service.
|
unless necessary. ``restarted`` will always bounce the service, ``reloaded``
|
||||||
|
will always issue a reload.
|
||||||
|
|
||||||
*enabled*:
|
*enabled*:
|
||||||
|
|
||||||
|
@ -368,6 +369,7 @@ Example action from Ansible :doc:`playbooks`::
|
||||||
service name=httpd state=started
|
service name=httpd state=started
|
||||||
service name=httpd state=stopped
|
service name=httpd state=stopped
|
||||||
service name=httpd state=restarted
|
service name=httpd state=restarted
|
||||||
|
service name=httpd state=reloaded
|
||||||
|
|
||||||
.. _setup:
|
.. _setup:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue