|
@@ -5,6 +5,16 @@
|
|
name: "{{ item.value.name}}"
|
|
name: "{{ item.value.name}}"
|
|
region: "{{ openshift_aws_region }}"
|
|
region: "{{ openshift_aws_region }}"
|
|
with_dict: "{{ openshift_aws_node_security_groups }}"
|
|
with_dict: "{{ openshift_aws_node_security_groups }}"
|
|
|
|
+ register: sg_delete_result
|
|
|
|
+ retries: 20
|
|
|
|
+ delay: 10
|
|
|
|
+ until: sg_delete_result | succeeded
|
|
|
|
+ ignore_errors: yes
|
|
|
|
+
|
|
|
|
+- name: check for sg delete error
|
|
|
|
+ fail:
|
|
|
|
+ msg: "Couldn't delete SGs {{ openshift_aws_node_security_groups }}"
|
|
|
|
+ when: not sg_delete_result | succeeded
|
|
|
|
|
|
- name: delete the k8s sgs for the node group
|
|
- name: delete the k8s sgs for the node group
|
|
oo_ec2_group:
|
|
oo_ec2_group:
|
|
@@ -12,3 +22,13 @@
|
|
name: "{{ item.value.name }}_k8s"
|
|
name: "{{ item.value.name }}_k8s"
|
|
region: "{{ openshift_aws_region }}"
|
|
region: "{{ openshift_aws_region }}"
|
|
with_dict: "{{ openshift_aws_node_security_groups }}"
|
|
with_dict: "{{ openshift_aws_node_security_groups }}"
|
|
|
|
+ register: sg_delete_result
|
|
|
|
+ retries: 20
|
|
|
|
+ delay: 10
|
|
|
|
+ until: sg_delete_result | succeeded
|
|
|
|
+ ignore_errors: yes
|
|
|
|
+
|
|
|
|
+- name: check for k8s sg delete error
|
|
|
|
+ fail:
|
|
|
|
+ msg: "Couldn't delete SGs {{ openshift_aws_node_security_groups }}"
|
|
|
|
+ when: not sg_delete_result | succeeded
|