1234567891011121314151617181920 |
- ---
- - name: fetch elbs
- ec2_elb_facts:
- region: "{{ openshift_aws_region }}"
- names:
- - "{{ openshift_aws_elb_name_dict['master']['internal'] }}"
- delegate_to: localhost
- register: elbs
- - debug: var=elbs
- run_once: true
- - name: set fact
- set_fact:
- openshift_master_cluster_hostname: "{{ elbs.elbs[0].dns_name }}"
- osm_custom_cors_origins:
- - "{{ elbs.elbs[0].dns_name }}"
- - "console.{{ openshift_aws_clusterid | default('default') }}.openshift.com"
- - "api.{{ openshift_aws_clusterid | default('default') }}.openshift.com"
- with_items: "{{ groups['masters'] }}"
|