use ternary syntax for readability (subjective)

This commit is contained in:
Jérémy Lecour 2023-11-10 17:17:39 +01:00 committed by Jérémy Lecour
parent 6ae9e04f27
commit c97e94bfe7
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY

View file

@ -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