diff --git a/tasks/auditd.yml b/tasks/auditd.yml index db641730..7018eefc 100644 --- a/tasks/auditd.yml +++ b/tasks/auditd.yml @@ -64,7 +64,7 @@ - name: V-38633 - The system must set a maximum audit log file size lineinfile: dest: /etc/audit/auditd.conf - regexp: "^(#)?max_log_file =" + regexp: "^(#)?max_log_file(?!_action)" line: "max_log_file = {{ max_log_file }}" when: auditd_conf.stat.exists | bool notify: @@ -180,7 +180,7 @@ - name: V-38678 - Lower limit of available disk space when auditd triggers space_left_action lineinfile: dest: /etc/audit/auditd.conf - regexp: "^(#)?space_left" + regexp: "^(#)?space_left(?!_action)" line: "space_left = {{ space_left }}" when: auditd_conf.stat.exists | bool notify: