bridge production: fix mtime matching

This is only matching files exactly 30 days older.  We want more than
30 days.

Change-Id: I9f04b217e0fd11ee0004ea60704fa2f4441ad89f
This commit is contained in:
Ian Wienand 2022-02-11 10:47:23 +11:00
parent 1fb51d22c2
commit e3caa4bcf3

View File

@ -61,5 +61,5 @@
when: not infra_prod_playbook_collect_log
become: yes
shell: |
find /var/log/ansible -name '{{ playbook_name }}.log.*' -type f -mtime 30 -delete
find /var/log/ansible -name '{{ playbook_name }}.log.*' -type f -mtime +30 -delete