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