More ansible core 2.20 fixes

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-05 15:07:58 -05:00
parent 4fed9b890a
commit b1dc671bfb
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -6,14 +6,14 @@
ansible.builtin.service_facts:
- name: 'ensure_sudo.service_reload'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ansible_service_mgr == 'systemd'
- ensure_sudo is defined
ansible.builtin.systemd:
daemon_reload: 'yes'
- name: 'ensure_sudo.service_restart'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ensure_sudo is defined
- ensure_sudo.service_list is defined
- ensure_sudo.service_list is iterable