add restart-auditd handler as after configuration change (e.g. of os_auditd_max_log_file_action) you need to restart. Sadly on rhel7 systems you cannot use systemd. And as debian derivates use service as alias and it works I kept it that simple. also adding 'auditd'-tag to make it easy only run that config change if needed.

Signed-off-by: Felix Herzog <[email protected]>
This commit is contained in:
Felix Herzog authored and Sebastian Gumprich committed 2021-03-19 14:42:31 +01:00
1 parent 9614273653
commit eca93cc80b
2 files changed
+8

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
---
- name: update-initramfs
command: 'update-initramfs -u'
- name: restart-auditd
command:
cmd: 'service auditd restart' # rhel: see: https://access.redhat.com/solutions/2664811
warn: no # sadly 'service' module fails in that case also by using 'use: service'