forked from ansible-lockdown/RHEL9-CIS
update var naming
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
4f566974c9
commit
9196e916fc
4 changed files with 45 additions and 28 deletions
|
|
@ -13,7 +13,7 @@
|
|||
ansible.builtin.lineinfile:
|
||||
path: /etc/audit/auditd.conf
|
||||
regexp: "^max_log_file( |=)"
|
||||
line: "max_log_file = {{ rhel9cis_auditd['max_log_file'] }}"
|
||||
line: "max_log_file = {{ rhel9cis_auditd_max_log_file_size }}"
|
||||
notify: Restart auditd
|
||||
|
||||
- name: "6.3.2.2 | PATCH | Ensure audit logs are not automatically deleted"
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
ansible.builtin.lineinfile:
|
||||
path: /etc/audit/auditd.conf
|
||||
regexp: "^max_log_file_action"
|
||||
line: "max_log_file_action = {{ rhel9cis_auditd['max_log_file_action'] }}"
|
||||
line: "max_log_file_action = {{ rhel9cis_auditd_max_log_file_action }}"
|
||||
notify: Restart auditd
|
||||
|
||||
- name: "6.3.2.3 | PATCH | Ensure system is disabled when audit logs are full"
|
||||
|
|
@ -51,11 +51,32 @@
|
|||
line: "{{ item.line }}"
|
||||
notify: Restart auditd
|
||||
loop:
|
||||
- { regexp: '^admin_space_left_action', line: 'admin_space_left_action = {{ rhel9cis_auditd.admin_space_left_action }}' }
|
||||
- { regexp: '^action_mail_acct', line: 'action_mail_acct = {{ rhel9cis_auditd.action_mail_acct }}' }
|
||||
- { regexp: '^space_left_action', line: 'space_left_action = {{ rhel9cis_auditd.space_left_action }}' }
|
||||
- { regexp: '^disk_full_action', line: 'disk_full_action = {{ rhel9cis_auditd_disk_full_action }}' }
|
||||
- { regexp: '^disk_error_action', line: 'disk_error_action = {{ rhel9cis_auditd_disk_error_action }}' }
|
||||
|
||||
- name: PATCH | Configure other keys for auditd.conf
|
||||
- name: "6.3.2.4 | PATCH | Ensure system warns when audit logs are low on space"
|
||||
when:
|
||||
- rhel9cis_rule_6_3_2_4
|
||||
tags:
|
||||
- level2-server
|
||||
- level2-workstation
|
||||
- patch
|
||||
- auditd
|
||||
- rule_6.3.2.4
|
||||
- NIST800-53R5_AU-2
|
||||
- NIST800-53R5_AU-8
|
||||
- NIST800-53R5_AU-12
|
||||
- NIST800-53R5_SI-5
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/audit/auditd.conf
|
||||
regexp: "{{ item.regexp }}"
|
||||
line: "{{ item.line }}"
|
||||
notify: Restart auditd
|
||||
loop:
|
||||
- { regexp: '^space_left_action', line: 'space_left_action = {{ rhel9cis_auditd_space_left_action }}' }
|
||||
- { regexp: '^admin_space_left_action', line: 'admin_space_left_action = {{ rhel9cis_auditd_admin_space_left_action }}' }
|
||||
|
||||
- name: "PATCH | Configure other keys for auditd.conf"
|
||||
when:
|
||||
- rhel9cis_auditd_extra_conf.keys() | length > 0
|
||||
- rhel9cis_auditd_extra_conf_usage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue