12345678910111213141516171819202122232425262728293031323334 |
- ---
- - name: delete the node group sgs
- oo_ec2_group:
- state: absent
- name: "{{ item.value.name}}"
- region: "{{ openshift_aws_region }}"
- with_dict: "{{ openshift_aws_node_security_groups }}"
- register: sg_delete_result
- retries: 20
- delay: 10
- until: sg_delete_result is succeeded
- ignore_errors: yes
- - name: check for sg delete error
- fail:
- msg: "Couldn't delete SGs {{ openshift_aws_node_security_groups }}"
- when: sg_delete_result is failed
- - name: delete the k8s sgs for the node group
- oo_ec2_group:
- state: absent
- name: "{{ item.value.name }}_k8s"
- region: "{{ openshift_aws_region }}"
- with_dict: "{{ openshift_aws_node_security_groups }}"
- register: sg_delete_result
- retries: 20
- delay: 10
- until: sg_delete_result is succeeded
- ignore_errors: yes
- - name: check for k8s sg delete error
- fail:
- msg: "Couldn't delete SGs {{ openshift_aws_node_security_groups }}"
- when: sg_delete_result is failed
|