use ternary syntax for readability (subjective)
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
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
This commit is contained in:
parent
6ae9e04f27
commit
c97e94bfe7
11
evolinux-base/templates/log2mail/evolinux-defaults.j2
Normal file
11
evolinux-base/templates/log2mail/evolinux-defaults.j2
Normal 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
|
Loading…
Reference in a new issue