Handler improvements

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
Jason Rothstein 2025-05-25 20:13:45 -05:00
parent eb23188dd3
commit 520600d269
Signed by: jmrothst
GPG Key ID: 741BF3C536829D46
2 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,7 @@
- ensure_selinux is defined - ensure_selinux is defined
ansible.builtin.systemd: ansible.builtin.systemd:
daemon_reload: 'yes' daemon_reload: 'yes'
- name: 'ensure_selinux.services' - name: 'ensure_selinux.service_restart'
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
- ensure_selinux is defined - ensure_selinux is defined
@ -25,3 +25,5 @@
loop: '{{ ensure_selinux.service_list }}' loop: '{{ ensure_selinux.service_list }}'
loop_control: loop_control:
label: '{{ item.name }} will be restarted' label: '{{ item.name }} will be restarted'
...

View File

@ -67,6 +67,8 @@
notify: notify:
- 'ensure_selinux.package_facts' - 'ensure_selinux.package_facts'
- 'ensure_selinux.service_facts' - 'ensure_selinux.service_facts'
- 'ensure_selinux.service_reload'
- 'ensure_selinux.service_restart'
- name: 'ensure services' - name: 'ensure services'
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@ -118,4 +120,5 @@
label: '{{ item.name }} will be {{ item.state }}' label: '{{ item.name }} will be {{ item.state }}'
- name: 'flush handlers' - name: 'flush handlers'
meta: 'flush_handlers' meta: 'flush_handlers'
...