mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-26 15:13:05 +00:00
updated auditd restart handler
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
2debbf573e
commit
a6ce1ef1bf
1 changed files with 9 additions and 2 deletions
|
|
@ -98,8 +98,15 @@
|
||||||
when:
|
when:
|
||||||
- auditd_immutable_check.stdout == '1'
|
- auditd_immutable_check.stdout == '1'
|
||||||
|
|
||||||
- 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