|
|
@ -29,12 +29,12 @@ description:
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Name of the service.
|
|
|
|
- Name of the service.
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices: [ running, started, stopped, restarted, reloaded ]
|
|
|
|
choices: [ running, started, stopped, restarted, reloaded ]
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- I(started), I(stopped), I(reloaded), I(restarted).
|
|
|
|
- I(started), I(stopped), I(reloaded), I(restarted).
|
|
|
|
I(Started)/I(stopped) are idempotent actions that will not run
|
|
|
|
I(Started)/I(stopped) are idempotent actions that will not run
|
|
|
|
commands unless necessary. I(restarted) will always bounce the
|
|
|
|
commands unless necessary. I(restarted) will always bounce the
|
|
|
@ -42,16 +42,16 @@ options:
|
|
|
|
pattern:
|
|
|
|
pattern:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
version_added: "0.7"
|
|
|
|
version_added: "0.7"
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- If the service does not respond to the status command, name a
|
|
|
|
- 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 I(ps)
|
|
|
|
substring to look for as would be found in the output of the I(ps)
|
|
|
|
command as a stand-in for a status result. If the string is found,
|
|
|
|
command as a stand-in for a status result. If the string is found,
|
|
|
|
the servie will be assumed to be running.
|
|
|
|
the service will be assumed to be running.
|
|
|
|
enabled:
|
|
|
|
enabled:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices: [ "yes", "no" ]
|
|
|
|
choices: [ "yes", "no" ]
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Whether the service should start on boot.
|
|
|
|
- Whether the service should start on boot.
|
|
|
|
examples:
|
|
|
|
examples:
|
|
|
|
- code: service name=httpd state=started
|
|
|
|
- code: service name=httpd state=started
|
|
|
|
description: Example action from Ansible Playbooks
|
|
|
|
description: Example action from Ansible Playbooks
|
|
|
|