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

- include_tasks: vpc_and_subnet_id.yml

- name: create elbs
  include_tasks: elb.yml
  with_dict: "{{ openshift_aws_elb_dict }}"
  vars:
    l_elb_security_groups: "{{ openshift_aws_elb_security_groups }}"
  loop_control:
    loop_var: l_elb_dict_item
