sysvinit – Manage SysV services¶
New in version 2.6.
Synopsis¶
Controls services on target hosts that use the SysV init system.
Requirements¶
The below requirements are needed on the host that executes this module.
That the service managed has a corresponding init script.
Parameters¶
Notes¶
Note
One option other than name is required.
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.