More ansible core 2.20 fixes

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-05 18:09:18 -05:00
parent 8d8b193c53
commit f579967979
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -6,14 +6,14 @@
ansible.builtin.service_facts:
- name: 'ensure_apache.service_reload'
when:
- ansible_system == 'Linux'
- ansible_service_mgr == 'systemd'
- ansible_facts["system"] == 'Linux'
- ansible_facts["service_mgr"] == 'systemd'
- ensure_apache is defined
ansible.builtin.systemd:
daemon_reload: 'yes'
- name: 'ensure_apache.service_restart'
when:
- ansible_system == 'Linux'
- ansible_facts["system"] == 'Linux'
- ensure_apache is defined
- ensure_apache.service_list is defined
- ensure_apache.service_list is iterable
+1 -1
View File
@@ -27,7 +27,7 @@
- name: 'service discovery'
when:
- ansible_facts["system"] == 'Linux'
- services is not defined
- ansible_facts["services"] is not defined
ansible.builtin.service_facts:
- name: 'ensure sysctl'
when: