Use systemd handlers from uumas.general.systemd

This commit is contained in:
uumas
2026-03-12 00:10:31 +02:00
parent fce8804653
commit f721641fc6
10 changed files with 30 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
---
- name: "Restart volume service {{ volume_name }}"
ansible.builtin.systemd_service:
name: "{{ volume_name }}-volume.service"
state: restarted
daemon_reload: true
ignore_errors: "{{ ansible_check_mode }}"
ansible.builtin.set_fact:
systemd_restart_units: "{{ systemd_restart_units + [volume_name ~ '-volume.service'] }}" # noqa: var-naming[no-role-prefix]
changed_when: true
notify: Apply systemd unit restarts

View File

@@ -9,4 +9,6 @@
state: quadlet
quadlet_file_mode: "0644"
quadlet_options: "{{ _volume_quadlet_options }}"
notify: Restart volume service {{ volume_name }}
notify:
- Reload systemd daemon
- Restart volume service {{ volume_name }}