bridge production: fix mtime matching

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

Change-Id: I9f04b217e0fd11ee0004ea60704fa2f4441ad89f
changes/08/828808/1
Ian Wienand 12 months ago
parent 1fb51d22c2
commit e3caa4bcf3

@ -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

Loading…
Cancel
Save