From df1f8e381d951a2ab6c52a32eb2467817795e083 Mon Sep 17 00:00:00 2001 From: Suvro Ghosh Date: Thu, 11 Mar 2021 10:38:57 -0500 Subject: [PATCH] Adding force flag to purge task This flag will allow ansible replay Story: 2007960 Task: 42039 Signed-off-by: Suvro Ghosh Depends-On: If68d66d799addcd996da4b146d092c855b455aa3 Change-Id: I93821965184d95a00fddd3398a1c214e3d730efa --- .../bootstrap/validate-config/tasks/purge_application.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbookconfig/src/playbooks/roles/bootstrap/validate-config/tasks/purge_application.yml b/playbookconfig/src/playbooks/roles/bootstrap/validate-config/tasks/purge_application.yml index b85281cb1..2294c61c7 100644 --- a/playbookconfig/src/playbooks/roles/bootstrap/validate-config/tasks/purge_application.yml +++ b/playbookconfig/src/playbooks/roles/bootstrap/validate-config/tasks/purge_application.yml @@ -20,7 +20,7 @@ - block: - name: Remove application - shell: "source /etc/platform/openrc; system application-remove {{ application }}" + shell: "source /etc/platform/openrc; system application-remove --force {{ application }}" - name: Wait until application is in the uploaded state shell: "source /etc/platform/openrc; system application-show {{ application }} @@ -34,4 +34,4 @@ # expect applications to be in the uploaded state now # because of above check leaving 2 possible states and above code eliminating "applied" - name: Delete application - shell: "source /etc/platform/openrc; system application-delete {{ application }}" + shell: "source /etc/platform/openrc; system application-delete --force {{ application }}"