uninstall_masters.yml 361 B

1234567891011121314
  1. ---
  2. - name: fetch master instances
  3. ec2_instance_facts:
  4. region: "{{ openshift_aws_region }}"
  5. filters:
  6. "tag:clusterid": "{{ openshift_aws_clusterid }}"
  7. "tag:host-type": "master"
  8. instance-state-name: running
  9. register: instancesout
  10. retries: 20
  11. delay: 3
  12. until: instancesout.instances|length > 0
  13. - import_tasks: uninstall_ec2.yml