From: Oleg Broytman Date: Sat, 4 Nov 2023 14:43:18 +0000 (+0300) Subject: Feat(logcheck): Disable systemd journal X-Git-Url: https://git.phdru.name/?p=ansible.git;a=commitdiff_plain;h=e5060680149e22e6fe8fb92cdd4aa7397ba78334 Feat(logcheck): Disable systemd journal --- 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: