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:
john-bakker 2024-11-27 15:01:42 +01:00 committed by GitHub
parent 2ff1550a1f
commit da1e37371f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: