summaryrefslogtreecommitdiffstats
path: root/roles/openshift_aws/tasks/elb.yml
blob: a543222d502f644cb64c8c3902d5edd41a91d258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- 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: "{{ l_openshift_aws_elb_name_dict[l_elb_dict_item.key][item.key] }}"
    state: present
    cross_az_load_balancing: "{{ openshift_aws_elb_az_load_balancing }}"
    security_group_names: "{{ l_elb_security_groups[l_elb_dict_item.key] }}"
    idle_timeout: "{{ openshift_aws_elb_idle_timout }}"
    region: "{{ openshift_aws_region }}"
    subnets:
    - "{{ subnetout.subnets[0].id }}"
    health_check: "{{ openshift_aws_elb_health_check }}"
    listeners: "{{ item.value }}"
    scheme: "{{ openshift_aws_elb_scheme }}"
    tags: "{{ openshift_aws_elb_tags }}"
  register: new_elb
  with_dict: "{{ l_elb_dict_item.value }}"

- debug:
    msg: "{{ item }}"
  with_items:
  - "{{ new_elb }}"