sysvinit

Collection: builtin

Full Name: parallax.builtin.sysvinit

Aliases: ansible.builtin.sysvinit, sysvinit

Synopsis

Manage sysvinit

Parameters

NameTypeRequiredDefaultDescription
namestringyesName of the service
statestringDesired state of the service Choices: started, stopped, restarted, reloaded
enabledboolWhether the service should be enabled to start on boot
argumentsstringExtra arguments provided on the command line to the init script
patternstringPattern to match running process if the init script does not support status
runlevelslistRun levels for the service to be enabled or disabled at
daemonizeboolfalseDaemonize the service process using start-stop-daemon
sleepint1Seconds to sleep between stop and start during a restart

Example

- name: Example sysvinit task
  sysvinit:
    name: <your_name>