Skip to content

Commit

Permalink
change way of restarting auditd
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
john-bakker authored Nov 27, 2024
1 parent 2ff1550 commit da1e373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit da1e373

Please sign in to comment.