Handler improvements

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

View File

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

View File

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