Handler improvements
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
parent
8c812db480
commit
73725a8751
@ -11,7 +11,7 @@
|
|||||||
- ensure_os_patch is defined
|
- ensure_os_patch is defined
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: 'yes'
|
daemon_reload: 'yes'
|
||||||
- name: 'ensure_os_patch.services'
|
- name: 'ensure_os_patch.service_restart'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
- ensure_os_patch is defined
|
- ensure_os_patch is defined
|
||||||
@ -25,3 +25,5 @@
|
|||||||
loop: '{{ ensure_os_patch.service_list }}'
|
loop: '{{ ensure_os_patch.service_list }}'
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.name }} will be restarted'
|
label: '{{ item.name }} will be restarted'
|
||||||
|
...
|
||||||
|
|
||||||
|
@ -89,4 +89,5 @@
|
|||||||
- 'ensure_os_patch.service_facts'
|
- 'ensure_os_patch.service_facts'
|
||||||
- name: 'flush handlers'
|
- name: 'flush handlers'
|
||||||
meta: 'flush_handlers'
|
meta: 'flush_handlers'
|
||||||
|
...
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user