log2mail: move custom config in separate file

This commit is contained in:
Jérémy Lecour 2023-11-20 19:02:48 +01:00 committed by Jérémy Lecour
parent 642fbb1ea4
commit 83c178f244
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 15 additions and 9 deletions

View file

@ -25,6 +25,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* evocheck: upstream release 23.10
* evolinux-base: dump-server-state upstream release 23.11
* evolinux-base: use separate default config file for rsyslog
* log2mail: move custom config in separate file
* nagios: rename var `nagios_nrpe_process_processes` into `nagios_nrpe_processes` and check systemd-timesyncd instead of ntpd in Debian 12
* proftpd: in SFTP vhost, enable SSH keys login, enable ed25549 host key for Debian >= 11

View file

@ -17,18 +17,23 @@
state: started
enabled: yes
- name: log2mail config is present
- name: log2mail evolinux config is absent from default config
ansible.builtin.blockinfile:
dest: /etc/log2mail/config/default
owner: log2mail
group: adm
mode: "0640"
marker: "# {mark} ANSIBLE MANAGED RULES FOR DEFAULT INSTANCE"
block: |
file = /var/log/syslog
pattern = "Out of memory: Kill"
mailto = {{ log2mail_alert_email or general_alert_email | mandatory }}
template = /etc/log2mail/mail
state: absent
notify: restart log2mail
tags:
- log2mail
- name: log2mail evolinux-defaults config is present
ansible.builtin.template:
src: log2mail/evolinux-defaults.j2
dest: /etc/log2mail/config/evolinux-defaults
owner: log2mail
group: adm
mode: "0640"
force: yes
notify: restart log2mail
tags:
- log2mail