From ca71f7efc073342043d71f562022645e6db093ce Mon Sep 17 00:00:00 2001 From: abikouo Date: Tue, 6 Feb 2024 13:42:51 +0100 Subject: [PATCH] conditional delete for global cluster --- playbooks/webapp/webapp_ha_aurora.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/webapp/webapp_ha_aurora.yaml b/playbooks/webapp/webapp_ha_aurora.yaml index 4576d9b..ad0b20c 100644 --- a/playbooks/webapp/webapp_ha_aurora.yaml +++ b/playbooks/webapp/webapp_ha_aurora.yaml @@ -106,6 +106,7 @@ - name: Delete Aurora DB ansible.builtin.include_role: name: cloud.aws_ops.create_rds_global_cluster + when: operation == "delete" vars: create_rds_global_cluster_operation: delete create_rds_global_cluster_global_cluster_name: "{{ rds_global_cluster_name }}"