|
@@ -1,8 +1,14 @@
|
|
|
---
|
|
|
-- name: scale group deletion for master
|
|
|
- include_tasks: uninstall_node_group.yml
|
|
|
- with_items: "{{ openshift_aws_master_group }}"
|
|
|
- vars:
|
|
|
- l_node_group_config: "{{ openshift_aws_master_group_config }}"
|
|
|
- loop_control:
|
|
|
- loop_var: openshift_aws_node_group
|
|
|
+- name: fetch master instances
|
|
|
+ ec2_instance_facts:
|
|
|
+ region: "{{ openshift_aws_region }}"
|
|
|
+ filters:
|
|
|
+ "tag:clusterid": "{{ openshift_aws_clusterid }}"
|
|
|
+ "tag:host-type": "master"
|
|
|
+ instance-state-name: running
|
|
|
+ register: instancesout
|
|
|
+ retries: 20
|
|
|
+ delay: 3
|
|
|
+ until: instancesout.instances|length > 0
|
|
|
+
|
|
|
+- import_tasks: uninstall_ec2.yml
|