Fix ansible core 2.20 and supported OS list
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
+3
-3
@@ -6,14 +6,14 @@
|
||||
ansible.builtin.service_facts:
|
||||
- name: 'ensure_postfix.service_reload'
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_service_mgr == 'systemd'
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
- ansible_facts["service_mgr"] == 'systemd'
|
||||
- ensure_postfix is defined
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: 'yes'
|
||||
- name: 'ensure_postfix.service_restart'
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
- ensure_postfix is defined
|
||||
- ensure_postfix.service_list is defined
|
||||
- ensure_postfix.service_list is iterable
|
||||
|
||||
Reference in New Issue
Block a user