ansible-roles/evolinux-base/tasks
Ludovic Poujol dc1c78e08a
All checks were successful
continuous-integration/drone/push Build is passing
evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10
I've noticed that some log files, especially /var/log/syslog were empty.
After investigating, I've realized that it was happening after a log
rotation by logrotate.

The old mechanism, `invoke-rc.d rsyslog rotate` isn't working anymore on
Debian 10. It will fail with a not so explicit message :

[FAIL] Closing open files: rsyslogd failed!

Long story short, it seems that the pid file (`/run/rsyslogd.pid`) isn't
created any more, so start-stop-daemon as used by /etc/init.d/rsyslog
will fail. Explaining the error message.

Debian 10 rsyslog now brings `/usr/lib/rsyslog/rsyslog-rotate` that is
used by logrotate. It will send the signal HUP the 'right' way, so
rsyslog will be aware of the log rotation.

Sadly, this script isn't present in Debian 9 nor 8, so the logrotate
configuration for rsyslog is now a template, using the right command for
the right version.
2019-11-22 16:48:19 +01:00
..
default_www.yml evolinux-base: have default_www files chmoded as 644 2017-12-13 15:44:16 +01:00
etc-evolinux.yml ansible-lint does not like trailing whitespace 2018-11-13 16:56:31 -05:00
fstab.yml evolinux-base: On debian 10 and later, add noexec on /dev/shm 2019-07-23 18:18:29 +02:00
hardware.yml Add compatibility for debian 9 and debian 10 in HW tool and megacli package 2019-11-14 14:29:04 +01:00
hostname.yml evolinux-base: add internal FQDN/hostname in /etc/hosts if needed 2018-08-17 10:07:36 +02:00
kernel.yml evolinux-base: compact multiple systctl tasks into one 2018-08-21 13:34:03 +02:00
log2mail.yml log2mail need to be started and not restarted each time 2017-08-30 04:07:26 +02:00
logs.yml evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10 2019-11-22 16:48:19 +01:00
main.yml typo 2019-10-30 14:32:32 +01:00
motd.yml evolinux-base: deploy custom motd if template are present 2018-11-30 15:14:39 +01:00
packages.yml evolinux-base: spectre-meltdown-checker need binutils 2019-07-03 09:56:17 +02:00
postfix.yml evolinux-base: improve hostname configuration 2018-08-16 16:17:34 +02:00
provider_online.yml evolinux-base: flush handlers at end of each include 2017-01-03 17:02:23 +01:00
provider_orange_fce.yml evolinux-base: flush handlers at end of each include 2017-01-03 17:02:23 +01:00
root.yml Fix a syntax error in a task name (a missplaced double quote) 2019-11-12 17:59:36 +01:00
ssh.yml evolinux-base: use "evolinux_internal_group" for SSH authentication 2019-09-22 22:26:21 +02:00
system.yml evolinux-base: install /sbin/deny 2019-10-30 14:32:32 +01:00