From 1a73cb9bfd3f6f768c26b9be032f637653e43634 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 5 Aug 2022 09:29:49 +1000 Subject: [PATCH] run-production-playbook-post: become when updating file time This needs to be root to update the timestamp on the file to when the job started. Change-Id: Id313a83824fa43467a0eaab2dabffd9ee1bf10f5 --- playbooks/zuul/run-production-playbook-post.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/zuul/run-production-playbook-post.yaml b/playbooks/zuul/run-production-playbook-post.yaml index ba9ba3a5a1..e9fa8a8118 100644 --- a/playbooks/zuul/run-production-playbook-post.yaml +++ b/playbooks/zuul/run-production-playbook-post.yaml @@ -111,6 +111,7 @@ modification_time_format: '%Y-%m-%dT%H:%M:%S' access_time: '{{ _log_timestamp }}' access_time_format: '%Y-%m-%dT%H:%M:%S' + become: yes - name: Cleanup old playbook logs on bridge when: not infra_prod_playbook_collect_log