From c97e94bfe73de300363b1c57ff088c0971d4ded0 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 10 Nov 2023 17:17:39 +0100 Subject: [PATCH] use ternary syntax for readability (subjective) --- evolinux-base/templates/log2mail/evolinux-defaults.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 evolinux-base/templates/log2mail/evolinux-defaults.j2 diff --git a/evolinux-base/templates/log2mail/evolinux-defaults.j2 b/evolinux-base/templates/log2mail/evolinux-defaults.j2 new file mode 100644 index 00000000..c030ed41 --- /dev/null +++ b/evolinux-base/templates/log2mail/evolinux-defaults.j2 @@ -0,0 +1,11 @@ +# {{ ansible_managed }} + +file = /var/log/syslog +pattern = "Out of memory: Kill" +mailto = {{ log2mail_alert_email or general_alert_email | mandatory }} +template = /etc/log2mail/mail + +file = /var/log/syslog +pattern = "memory read error" +mailto = {{ log2mail_alert_email or general_alert_email | mandatory }} +template = /etc/log2mail/mail \ No newline at end of file