sysvinit – Manage SysV services¶
New in version 2.6.
Requirements¶
The below requirements are needed on the host that executes this module.
That the service managed has a corresponding init script.
Parameters¶
Examples¶
- name: make sure apache2 is started
sysvinit:
name: apache2
state: started
enabled: yes
- name: make sure apache2 is started on runlevels 3 and 5
sysvinit:
name: apache2
state: started
enabled: yes
runlevels:
- 3
- 5
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Core Team. [core]
Red Hat Support¶
More information about Red Hat’s support of this module is available from this Red Hat Knowledge Base article.
Authors¶
Ansible Core Team
Hint
If you notice any issues in this documentation, you can edit this document to improve it.