Release 10.0.0 #100

Manually merged
jlecour merged 321 commits from unstable into stable 2020-05-13 11:25:49 +02:00
2 changed files with 26 additions and 0 deletions
Showing only changes of commit 97719d28f2 - Show all commits

22
redis/tasks/log2mail.yml Normal file
View file

@ -0,0 +1,22 @@
---
- name: Is log2mail present ?
stat:
path: /etc/log2mail/config
check_mode: no
register: log2mail_config_dir
tags:
- redis
- log2mail
- name: Copy log2mail config
template:
src: log2mail.j2
dest: /etc/log2mail/config/redis.conf
owner: log2mail
group: adm
mode: "0640"
when: log2mail_config_dir.stat.exists
tags:
- redis
- log2mail

View file

@ -0,0 +1,4 @@
file = /var/log/syslog
pattern = "Can't save in background: fork: Cannot allocate memory"
mailto = {{ log2mail_alert_email or general_alert_email | mandatory }}
template = /etc/log2mail/mail