---
- name: delete elbs
  ec2_elb_lb:
    name: "{{ item }}"
    region: "{{ openshift_aws_region }}"
    state: absent
  with_items: "{{ openshift_aws_elb_dict | json_query('*.*.name') | sum(start = []) }}"

- when: openshift_aws_create_iam_cert | bool
  name: delete the iam_cert for elb certificate
  include_tasks: uninstall_iam_cert.yml
