ansible.builtin.sysvinit – Manage SysV services.¶
This module is part of
ansible-base and included in all Ansible
installations. In most cases, you can use the short module name
sysvinit even without specifying the
Despite that, we recommend you use the FQCN for easy linking to the module
documentation and to avoid conflicting with other collections that may have
the same module name.
New in version 2.6: of ansible.builtin
The below requirements are needed on the host that executes this module.
That the service managed has a corresponding init script.
- 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
Common return values are documented here, the following are the fields unique to this module: