From e5060680149e22e6fe8fb92cdd4aa7397ba78334 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 4 Nov 2023 17:43:18 +0300 Subject: [PATCH] Feat(logcheck): Disable systemd journal --- playbooks/roles/logcheck/tasks/main.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/roles/logcheck/tasks/main.yaml b/playbooks/roles/logcheck/tasks/main.yaml index 83980f9..86534e9 100644 --- a/playbooks/roles/logcheck/tasks/main.yaml +++ b/playbooks/roles/logcheck/tasks/main.yaml @@ -26,6 +26,13 @@ line: "INTRO=0" insertafter: "^#INTRO=1$" +- name: Configure logcheck - disable systemd journal + become: true + lineinfile: + path: /etc/logcheck/logcheck.logfiles.d/journal.logfiles + regexp: "^journal$" + line: "#journal" + - name: Configure logcheck - send email to root become: true lineinfile: -- 2.39.2