From e3caa4bcf3e9a27a2873782a8f9a0ab49257aa27 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 11 Feb 2022 10:47:23 +1100 Subject: [PATCH] bridge production: fix mtime matching This is only matching files exactly 30 days older. We want more than 30 days. Change-Id: I9f04b217e0fd11ee0004ea60704fa2f4441ad89f --- playbooks/zuul/run-production-playbook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/zuul/run-production-playbook.yaml b/playbooks/zuul/run-production-playbook.yaml index e35cbb9ac8..42171f0702 100644 --- a/playbooks/zuul/run-production-playbook.yaml +++ b/playbooks/zuul/run-production-playbook.yaml @@ -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