Add rsyslog compress cron job

This commit is contained in:
Ryan Cavicchioni 2019-11-10 15:37:48 -06:00
parent 9856e2bdbb
commit 602907dd7c
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -38,5 +38,5 @@
minute: "0" minute: "0"
hour: "1" hour: "1"
user: root user: root
job: find /var/log/syslog/ -type f ! -name "*$(date +%Y%m%d)*.log" -name "*.log" -exec xz {} \; job: find /var/log/syslog/ -type f ! -name "*$(date +\%Y\%m\%d)*.log" -name "*.log" -exec xz {} \;
state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}" state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}"