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:
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…
Reference in New Issue
Block a user