main.yml 667 B

12345678910111213141516
  1. ---
  2. - set_fact:
  3. openshift_hosted_router_selector: "{{ openshift_hosted_infra_selector }}"
  4. when: openshift_hosted_router_selector is not defined and openshift_hosted_infra_selector is defined
  5. - set_fact:
  6. openshift_hosted_registry_selector: "{{ openshift_hosted_infra_selector }}"
  7. when: openshift_hosted_registry_selector is not defined and openshift_hosted_infra_selector is defined
  8. - name: Set hosted facts
  9. openshift_facts:
  10. role: hosted
  11. openshift_env: "{{ hostvars
  12. | oo_merge_hostvars(vars, inventory_hostname)
  13. | oo_openshift_env }}"
  14. openshift_env_structures:
  15. - 'openshift.hosted.router.*'