blob: 737cfc7a671418b01197d66ef3931f68451b6580 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
- name: fetch elbs
ec2_elb_facts:
region: "{{ openshift_aws_region }}"
names:
- "{{ item }}"
with_items:
- "{{ openshift_aws_elb_name }}-external"
- "{{ openshift_aws_elb_name }}-internal"
delegate_to: localhost
register: elbs
- debug: var=elbs
- name: set fact
set_fact:
openshift_master_cluster_hostname: "{{ elbs.results[1].elbs[0].dns_name }}"
osm_custom_cors_origins:
- "{{ elbs.results[1].elbs[0].dns_name }}"
- "console.{{ openshift_aws_clusterid | default('default') }}.openshift.com"
- "api.{{ openshift_aws_clusterid | default('default') }}.openshift.com"
with_items: "{{ groups['masters'] }}"
|