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 container service {{ container_name }}"
ansible.builtin.systemd_service:
name: "{{ container_name }}.service"
state: restarted
daemon_reload: true
ignore_errors: '{{ ansible_check_mode }}'
- name: Restart container service {{ container_name }}
ansible.builtin.set_fact:
systemd_restart_units: "{{ systemd_restart_units + [container_name ~ '.service'] }}" # noqa: var-naming[no-role-prefix]
changed_when: true
notify: Apply systemd unit restarts