--- - hosts: all vars: tasks: - name: Make sure contents of /etc/audit/rules.d/10-base-config.rules are as expected copy: dest: /etc/audit/rules.d/10-base-config.rules content: |+ ## First rule - delete all -D ## Increase the buffers to survive stress events. ## Make this bigger for busy systems -b 8192 ## This determine how long to wait in burst of events --backlog_wait_time 60000 ## Set failure mode to syslog -f 1 force: true when: ansible_virtualization_role != "guest" or ansible_virtualization_type != "docker" tags: - audit_basic_configuration - medium_severity - restrict_strategy - low_complexity - low_disruption - no_reboot_needed - CCE-82462-3 - NIST-800-53-AU-2(a)