Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Oct 3, 2023
1 parent f4f84ce commit 4358710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions roles/create_rds_global_cluster/tasks/delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
skip_final_snapshot: true
wait: false
state: absent
when: _result_replica_cluster_info.clusters[0].db_cluster_members | length >= 1

- name: Delete replica cluster without creating a final snapshot
amazon.aws.rds_cluster:
Expand All @@ -46,14 +45,12 @@
skip_final_snapshot: true
wait: false
state: absent
when: _result_primary_cluster_info.clusters[0].db_cluster_members | length >= 1

- name: Delete primary cluster without creating a final snapshot
amazon.aws.rds_cluster:
cluster_id: "{{ create_rds_global_cluster_primary_cluster_name }}"
region: "{{ create_rds_global_cluster_primary_cluster_region }}"
global_cluster_identifier: "{{ create_rds_global_cluster_global_cluster_name }}"
remove_from_global_db: true
skip_final_snapshot: True
state: absent
when: _result_primary_cluster_info.clusters | length != 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
- name: Get Global DB information
amazon.cloud.rds_global_cluster:
global_cluster_identifier: "{{ test_global_cluster_name }}"
region: "{{ test_primary_cluster_region }}"
state: describe
register: global_cluster_info

Expand Down Expand Up @@ -103,5 +104,6 @@
- name: Delete Aurora global cluster
amazon.cloud.rds_global_cluster:
global_cluster_identifier: "{{ test_global_cluster_name }}"
region: "{{ test_primary_cluster_region }}"
state: absent
ignore_errors: true

0 comments on commit 4358710

Please sign in to comment.