From 72848fa0977a6a8d28c3c5ead9f26204026ec4cc Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 11 Jun 2020 15:57:27 -0400 Subject: [PATCH] Remove the cache when delete-on-update is set --- awx/playbooks/project_update.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/awx/playbooks/project_update.yml b/awx/playbooks/project_update.yml index e791524de8..c84bd0ba25 100644 --- a/awx/playbooks/project_update.yml +++ b/awx/playbooks/project_update.yml @@ -30,6 +30,13 @@ tags: - delete + - name: delete project cache directory before update + file: + path: "{{project_cache|quote}}" + state: absent + tags: + - delete + - block: - name: update project using git git: