forked from ansible-lockdown/RHEL9-CIS
updated auditd handlers for restart
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
4869103bf5
commit
95cf8b9492
1 changed files with 9 additions and 2 deletions
|
|
@ -107,8 +107,15 @@
|
||||||
msg: "Reboot required for auditd to apply new rules as immutable set"
|
msg: "Reboot required for auditd to apply new rules as immutable set"
|
||||||
notify: Change_requires_reboot
|
notify: Change_requires_reboot
|
||||||
|
|
||||||
- name: Restart auditd
|
- name: Stop auditd process
|
||||||
ansible.builtin.shell: service auditd restart
|
ansible.builtin.shell: systemctl kill auditd
|
||||||
|
listen: Restart auditd
|
||||||
|
|
||||||
|
- name: Start auditd process
|
||||||
|
ansible.builtin.systemd_service:
|
||||||
|
name: auditd
|
||||||
|
state: started
|
||||||
|
listen: Restart auditd
|
||||||
|
|
||||||
- name: Change_requires_reboot
|
- name: Change_requires_reboot
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue