evolinux-base: disable logcheck monitoring of journald only if journald.logfiles exists
This commit is contained in:
parent
16394060c9
commit
9a65312190
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue