evolinux-base: disable logcheck monitoring of journald only if journald.logfiles exists

This commit is contained in:
Jérémy Lecour 2024-04-18 15:10:01 +02:00 committed by Jérémy Lecour
parent 16394060c9
commit 9a65312190
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 9 additions and 1 deletions

View file

@ -17,6 +17,7 @@ The **patch** part is incremented if multiple releases happen the same month
* autosysadmin-agent: upstream release 24.03.2
* evolinux-base: Add new variable to disable global customisation of bash config
* evolinux-base: Disable logcheck monitoring of journald only if journald.logfiles exists
* roundcube: Use /var/log/roundcube directly
* evolinux-users: Add sudo mvcli for nagios user
* vrrpd : configure and restart minifirewall before starting VRRP

View file

@ -64,12 +64,19 @@
when: evolinux_logs_default_dateext | bool
# Logcheck
- name: Check if journald.logfiles exists
stat:
path: /etc/logcheck/logcheck.logfiles.d/journal.logfiles
register: _logcheck_journald_logfiles
- name: Disable logcheck monitoring of journald
ansible.builtin.lineinfile:
dest: /etc/logcheck/logcheck.logfiles.d/journal.logfiles
line: "#journal"
regexp: "^journal"
when: evolinux_logs_disable_logcheck_journald | bool
when:
- _logcheck_journald_logfiles.stat.exists
- evolinux_logs_disable_logcheck_journald | bool
# Journald
- name: /etc/systemd/journald.conf.d/ is present