ansible-roles/evolinux-base/templates/log2mail/evolinux-defaults.j2
Jérémy Lecour c97e94bfe7
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2633|4|2629|4|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/388//ansiblelint">Evolix » ansible-roles » unstable #388</a>
gitea/ansible-roles/pipeline/head This commit looks good
use ternary syntax for readability (subjective)
2023-11-10 17:17:39 +01:00

11 lines
335 B
Django/Jinja

# {{ 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