From 3e7cb9bcefa1812b77b489920fffb3b21c3e7baf Mon Sep 17 00:00:00 2001 From: Vince Power Date: Wed, 6 May 2020 07:47:49 -0400 Subject: [PATCH] releasing the ID after the cluster is destroyed so there won't be a conflict ever --- ansible/configs/aro/destroy_env.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ansible/configs/aro/destroy_env.yml b/ansible/configs/aro/destroy_env.yml index d22ad4f13e9..4184b1dc2af 100644 --- a/ansible/configs/aro/destroy_env.yml +++ b/ansible/configs/aro/destroy_env.yml @@ -14,10 +14,6 @@ gather_facts: False become: no tasks: - - name: Releasing the app registration - command: > - curl {{az_function_release}}{{project_tag}} - - name: Ensure az is installed environment: PATH: /usr/bin @@ -52,3 +48,8 @@ - name: Remove the ARO resource group ignore_errors: true command: "az group delete --name {{az_resource_group}} --yes" + + - name: Releasing the app registration + command: > + curl {{az_function_release}}{{project_tag}} +