mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
change way of restarting auditd
Auditd restart is using builtin.shell : service restart auditd , in alma linux 9.5 , service is no longer used so it is better to use builtin.systemd with state restarted, as is being used for other components Signed-off-by: john-bakker <johnbakker@gmail.com>
This commit is contained in:
parent
2ff1550a1f
commit
da1e37371f
1 changed files with 3 additions and 1 deletions
|
|
@ -99,7 +99,9 @@
|
|||
- auditd_immutable_check.stdout == '1'
|
||||
|
||||
- name: Restart auditd
|
||||
ansible.builtin.shell: service auditd restart
|
||||
ansible.builtin.systemd:
|
||||
name: auditd
|
||||
state: restarted
|
||||
|
||||
- name: Change_requires_reboot
|
||||
ansible.builtin.set_fact:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue