service module
The module that starts, stops, restarts or reloads a background service on a host and sets whether it starts at boot.
In more detail
state: started makes sure the service is running now, and enabled: true makes it start after a reboot. It works with the host's service manager, such as systemd. Handlers commonly call it to reload a service after its configuration changes.
Related terms
- package module — The module that installs or removes software using whatever package manager the host has, such as apt or dnf.
- handler — A task that runs only when another task notifies it and reports changed, typically to reload or restart a service.
- systemd — The program that starts and supervises background services on most Linux distributions.
Taught in
- Connections And Privilege Escalation — Ansible Configuration Management at Scale
- Handlers And Failure: notify, block, rescue And always — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: A Web Node From A Ticket — RHCE in Ansible (EX294): Automate Red Hat Systems