4
0
Fork 0

fix items

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2023-01-12 15:01:43 +00:00
parent a85902ef2f
commit c129d9af23
No known key found for this signature in database
GPG key ID: 1DE02A772D0908F9

View file

@ -190,11 +190,11 @@
regexp: '{{ item }}' regexp: '{{ item }}'
replace: '#\1' replace: '#\1'
notify: restart rsyslog notify: restart rsyslog
with_items: loop:
- '^\$ModLoad imtcp' - '^(\$ModLoad imtcp)'
- '^\$InputTCPServerRun' - '^(\$InputTCPServerRun)'
- '^module\(load="imtcp"\)' - '^(module\(load="imtcp"\))'
- '^input\(type="imtcp" port=.*\)' - '^(input\(type="imtcp")'
when: not rhel9cis_system_is_log_server when: not rhel9cis_system_is_log_server
- name: "4.2.1.7 | PATCH | Ensure rsyslog is not configured to recieve logs from a remote clients. | When log host" - name: "4.2.1.7 | PATCH | Ensure rsyslog is not configured to recieve logs from a remote clients. | When log host"
@ -203,11 +203,11 @@
regexp: '^#(.*{{ item }}.*)' regexp: '^#(.*{{ item }}.*)'
replace: '\1' replace: '\1'
notify: restart rsyslog notify: restart rsyslog
with_items: loop:
- 'ModLoad imtcp' - 'ModLoad imtcp'
- 'InputTCPServerRun' - 'InputTCPServerRun'
- 'module\(load="imtcp"\)' - 'module\(load="imtcp"\)'
- 'input\(type="imtcp" port=".*")' - 'input\(type="imtcp"'
when: rhel9cis_system_is_log_server when: rhel9cis_system_is_log_server
when: when:
- rhel9cis_rule_4_2_1_7 - rhel9cis_rule_4_2_1_7