forked from ansible-lockdown/RHEL9-CIS
Issue #38 thanks to bdwyertech
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
5984829b47
commit
5a928b4304
1 changed files with 5 additions and 5 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
path: /etc/systemd/journal-upload.conf
|
path: /etc/systemd/journal-upload.conf
|
||||||
regexp: "{{ item.regexp }}"
|
regexp: "{{ item.regexp }}"
|
||||||
line: "{{ item.line }}"
|
line: "{{ item.line }}"
|
||||||
notify: Restart systemd_journal_upload
|
notify: Restart journald
|
||||||
loop:
|
loop:
|
||||||
- { regexp: 'URL=', line: 'URL={{ rhel9cis_journal_upload_url }}'}
|
- { regexp: 'URL=', line: 'URL={{ rhel9cis_journal_upload_url }}'}
|
||||||
- { regexp: 'ServerKeyFile=', line: 'ServerKeyFile={{ rhel9cis_journal_upload_serverkeyfile }}'}
|
- { regexp: 'ServerKeyFile=', line: 'ServerKeyFile={{ rhel9cis_journal_upload_serverkeyfile }}'}
|
||||||
|
|
@ -106,7 +106,7 @@
|
||||||
path: /etc/systemd/journald.conf
|
path: /etc/systemd/journald.conf
|
||||||
regexp: "^#Compress=|^Compress="
|
regexp: "^#Compress=|^Compress="
|
||||||
line: Compress=yes
|
line: Compress=yes
|
||||||
notify: Restart systemd_journal_upload
|
notify: Restart journald
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_4_2_2_3
|
- rhel9cis_rule_4_2_2_3
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -121,7 +121,7 @@
|
||||||
path: /etc/systemd/journald.conf
|
path: /etc/systemd/journald.conf
|
||||||
regexp: "^#Storage=|^Storage="
|
regexp: "^#Storage=|^Storage="
|
||||||
line: Storage=persistent
|
line: Storage=persistent
|
||||||
notify: Restart systemd_journal_upload
|
notify: Restart journald
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_4_2_2_4
|
- rhel9cis_rule_4_2_2_4
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -137,7 +137,7 @@
|
||||||
path: /etc/systemd/journald.conf
|
path: /etc/systemd/journald.conf
|
||||||
regexp: "^ForwardToSyslog="
|
regexp: "^ForwardToSyslog="
|
||||||
line: "#ForwardToSyslog=yes"
|
line: "#ForwardToSyslog=yes"
|
||||||
notify: Restart systemd_journal_upload
|
notify: Restart journald
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_4_2_2_5
|
- rhel9cis_rule_4_2_2_5
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
path: /etc/systemd/journald.conf
|
path: /etc/systemd/journald.conf
|
||||||
regexp: "{{ item.regexp }}"
|
regexp: "{{ item.regexp }}"
|
||||||
line: "{{ item.line }}"
|
line: "{{ item.line }}"
|
||||||
notify: Restart systemd_journal_upload
|
notify: Restart journald
|
||||||
loop:
|
loop:
|
||||||
- { regexp: '^#SystemMaxUse=|^SystemMaxUse=', line: 'SystemMaxUse={{ rhel9cis_journald_systemmaxuse }}'}
|
- { regexp: '^#SystemMaxUse=|^SystemMaxUse=', line: 'SystemMaxUse={{ rhel9cis_journald_systemmaxuse }}'}
|
||||||
- { regexp: '^#SystemKeepFree=|^SystemKeepFree=', line: 'SystemKeepFree={{ rhel9cis_journald_systemkeepfree }}' }
|
- { regexp: '^#SystemKeepFree=|^SystemKeepFree=', line: 'SystemKeepFree={{ rhel9cis_journald_systemkeepfree }}' }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue