Add /var/log/syslog/ clean up cron job
This commit is contained in:
parent
e9113856ea
commit
3347935780
@ -77,5 +77,7 @@
|
|||||||
minute: "0"
|
minute: "0"
|
||||||
hour: "2"
|
hour: "2"
|
||||||
user: root
|
user: root
|
||||||
job: find /var/log/syslog/ -mindepth 4 -type f -name "*.log" -mtime +90 -delete
|
job: >
|
||||||
|
find /var/log/syslog/ -mindepth 4 -type f -name "*.log.xz" -mtime +90 -delete &&
|
||||||
|
find /var/log/syslog/ -mindepth 3 -type d -empty -delete
|
||||||
state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}"
|
state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user