| 1 | --- |
| 2 | |
| 3 | |
| 4 | - hosts: all |
| 5 | vars: |
| 6 | tasks: |
| 7 | - name: Make sure contents of /etc/audit/rules.d/10-base-config.rules are as expected |
| 8 | copy: |
| 9 | dest: /etc/audit/rules.d/10-base-config.rules |
| 10 | content: |+ |
| 11 | ## First rule - delete all |
| 12 | -D |
| 13 | |
| 14 | ## Increase the buffers to survive stress events. |
| 15 | ## Make this bigger for busy systems |
| 16 | -b 8192 |
| 17 | |
| 18 | ## This determine how long to wait in burst of events |
| 19 | --backlog_wait_time 60000 |
| 20 | |
| 21 | ## Set failure mode to syslog |
| 22 | -f 1 |
| 23 | |
| 24 | |
| 25 | force: true |
| 26 | when: ansible_virtualization_role != "guest" or ansible_virtualization_type != "docker" |
| 27 | tags: |
| 28 | - audit_basic_configuration |
| 29 | - medium_severity |
| 30 | - restrict_strategy |
| 31 | - low_complexity |
| 32 | - low_disruption |
| 33 | - no_reboot_needed |
| 34 | - CCE-82462-3 |
| 35 | - NIST-800-53-AU-2(a) |
| 36 | |
| 37 |