From e98069997c74c76c8a5b755b663919082c02cac1 Mon Sep 17 00:00:00 2001 From: Brian Dwyer Date: Wed, 1 Mar 2023 13:54:38 -0500 Subject: [PATCH] We don't need to restart the upload service, just journald --- tasks/section_4/cis_4.2.2.x.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/section_4/cis_4.2.2.x.yml b/tasks/section_4/cis_4.2.2.x.yml index 72767a4..36d7eac 100644 --- a/tasks/section_4/cis_4.2.2.x.yml +++ b/tasks/section_4/cis_4.2.2.x.yml @@ -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: @@ -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: @@ -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: @@ -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 }}' }