Fix handlers vs ansible core 2.20

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-05 17:27:48 -05:00
parent 44312ad316
commit 22021947aa
+3 -3
View File
@@ -6,14 +6,14 @@
ansible.builtin.service_facts:
- name: 'ensure_cockpit.service_reload'
when:
- ansible_system == 'Linux'
- ansible_service_mgr == 'systemd'
- ansible_facts["system"] == 'Linux'
- ansible_facts["service_mgr"] == 'systemd'
- ensure_cockpit is defined
ansible.builtin.systemd:
daemon_reload: 'yes'
- name: 'ensure_cockpit.service_restart'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ensure_cockpit is defined
- ensure_cockpit.service_list is defined
- ensure_cockpit.service_list is iterable