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

+3
View File
@@ -3,6 +3,7 @@
package:
name: '{{ auditd_package }}'
state: 'present'
tags: auditd
- name: configure auditd | package-08
template:
@@ -11,3 +12,5 @@
owner: 'root'
group: 'root'
mode: '0640'
notify: 'restart-auditd'
tags: auditd