15 lines
412 B
YAML
15 lines
412 B
YAML
---
|
|
- name: Reload systemd daemon
|
|
ansible.builtin.systemd_service:
|
|
daemon_reload: true
|
|
|
|
- name: Apply systemd unit restarts # noqa: command-instead-of-module
|
|
ansible.builtin.command:
|
|
cmd: systemctl restart {{ systemd_restart_units | join(' ') }}
|
|
changed_when: true
|
|
|
|
- name: Reset systemd restart units
|
|
listen: Apply systemd unit restarts
|
|
ansible.builtin.set_fact:
|
|
systemd_restart_units: []
|