removed unnecessary register

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-09-16 15:48:13 +01:00
parent cc2f734d57
commit cdf8bab1ed
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB

View file

@ -5,7 +5,6 @@
path: /etc/audit/auditd.conf
regexp: "^max_log_file( |=)"
line: "max_log_file = {{ rhel9cis_max_log_file_size }}"
register: rule_4_1_2_1
notify: restart auditd
when:
- rhel9cis_rule_4_1_2_1
@ -22,7 +21,6 @@
path: /etc/audit/auditd.conf
regexp: "^max_log_file_action"
line: "max_log_file_action = {{ rhel9cis_auditd['max_log_file_action'] }}"
register: rule_4_1_2_2
notify: restart auditd
when:
- rhel9cis_rule_4_1_2_2
@ -39,7 +37,6 @@
path: /etc/audit/auditd.conf
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
register: rule_4_1_2_3
notify: restart auditd
with_items:
- { regexp: '^admin_space_left_action', line: 'admin_space_left_action = {{ rhel9cis_auditd.admin_space_left_action }}' }