mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-26 15:13:05 +00:00
fix items
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
a85902ef2f
commit
c129d9af23
1 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue