install cron for deleting old archives

This commit is contained in:
Miroslav Suchý 2017-11-02 14:40:36 +01:00
parent 0a7ebf6c23
commit 268bc7317d
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
# +n = greater; -n = less; n = exactly n days
archive_age: '+14'

View file

@ -116,4 +116,5 @@
state: present
when: not devel
- name: install cron for deleting old archives
cron: name="rotate_faf_archives" special_time="daily" job="find '/srv/faf/reports/archives/' -type f -name '*.tar.xz' -mtime '{{archive_age}}' -delete" user="faf"