master_facts.yml 596 B

1234567891011121314151617181920
  1. ---
  2. - name: fetch elbs
  3. ec2_elb_facts:
  4. region: "{{ openshift_aws_region }}"
  5. names:
  6. - "{{ openshift_aws_elb_name_dict['master']['internal'] }}"
  7. delegate_to: localhost
  8. register: elbs
  9. - debug: var=elbs
  10. run_once: true
  11. - name: set fact
  12. set_fact:
  13. openshift_master_cluster_hostname: "{{ elbs.elbs[0].dns_name }}"
  14. osm_custom_cors_origins:
  15. - "{{ elbs.elbs[0].dns_name }}"
  16. - "console.{{ openshift_aws_clusterid | default('default') }}.openshift.com"
  17. - "api.{{ openshift_aws_clusterid | default('default') }}.openshift.com"
  18. with_items: "{{ groups['masters'] }}"