123456789101112131415161718192021222324252627 |
- ---
- - name: "dump the elb listeners for {{ l_elb_dict_item.key }}"
- debug:
- msg: "{{ l_elb_dict_item.value }}"
- - name: "Create ELB {{ l_elb_dict_item.key }}"
- ec2_elb_lb:
- name: "{{ item.value.name }}"
- state: present
- cross_az_load_balancing: "{{ item.value.cross_az_load_balancing }}"
- security_group_names: "{{ l_elb_security_groups[l_elb_dict_item.key] }}"
- idle_timeout: "{{ item.value.idle_timout }}"
- region: "{{ openshift_aws_region }}"
- subnets:
- - "{{ subnetout.subnets[0].id }}"
- health_check: "{{ item.value.health_check }}"
- listeners: "{{ item.value.listeners }}"
- scheme: "{{ (item.key == 'internal') | ternary('internal','internet-facing') }}"
- tags: "{{ item.value.tags }}"
- wait: True
- register: new_elb
- with_dict: "{{ l_elb_dict_item.value }}"
- - debug:
- msg: "{{ item }}"
- with_items:
- - "{{ new_elb }}"
|