4
0
Fork 0
RHEL9-CIS/tasks/auditd.yml
Mark Bolwell 084e6c6760
moved some controls to handlers
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2022-07-29 17:08:38 +01:00

24 lines
715 B
YAML

- name: POST | AUDITD | Apply auditd template will for section 4.1.3 - only required rules will be added
template:
src: audit/99_auditd.rules.j2
dest: /etc/audit/rules.d/99_auditd.rules
owner: root
group: root
mode: 0600
register: audit_rules_updated
notify:
- auditd_immutable_check
- audit_immutable_fact
- restart auditd
- name: POST | Set up auditd user logging exceptions
template:
src: audit/98_auditd_exception.rules.j2
dest: /etc/audit/rules.d/98_auditd_exceptions.rules
owner: root
group: root
mode: 0600
notify: restart auditd
when:
- allow_auditd_uid_user_exclusions
- rhel9cis_auditd_uid_exclude | length > 0