Use systemd handlers from uumas.general.systemd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user