Skip to content

Commit

Permalink
We don't need to restart the upload service, just journald
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwyertech committed Mar 1, 2023
1 parent a58e3ff commit e980699
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/section_4/cis_4.2.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
path: /etc/systemd/journald.conf
regexp: "^#Compress=|^Compress="
line: Compress=yes
notify: Restart systemd_journal_upload
notify: Restart journald
when:
- rhel9cis_rule_4_2_2_3
tags:
Expand All @@ -121,7 +121,7 @@
path: /etc/systemd/journald.conf
regexp: "^#Storage=|^Storage="
line: Storage=persistent
notify: Restart systemd_journal_upload
notify: Restart journald
when:
- rhel9cis_rule_4_2_2_4
tags:
Expand All @@ -137,7 +137,7 @@
path: /etc/systemd/journald.conf
regexp: "^ForwardToSyslog="
line: "#ForwardToSyslog=yes"
notify: Restart systemd_journal_upload
notify: Restart journald
when:
- rhel9cis_rule_4_2_2_5
tags:
Expand All @@ -153,7 +153,7 @@
path: /etc/systemd/journald.conf
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
notify: Restart systemd_journal_upload
notify: Restart journald
loop:
- { regexp: '^#SystemMaxUse=|^SystemMaxUse=', line: 'SystemMaxUse={{ rhel9cis_journald_systemmaxuse }}'}
- { regexp: '^#SystemKeepFree=|^SystemKeepFree=', line: 'SystemKeepFree={{ rhel9cis_journald_systemkeepfree }}' }
Expand Down

0 comments on commit e980699

Please sign in to comment.