main.yml 909 B

12345678910111213141516171819
  1. ---
  2. # openshift_*_selector variables have been deprecated in favor of
  3. # openshift_hosted_*_selector variables.
  4. - set_fact:
  5. openshift_hosted_router_selector: "{{ openshift_router_selector | default(openshift_hosted_infra_selector) }}"
  6. when: openshift_hosted_router_selector is not defined and openshift_hosted_infra_selector is defined
  7. - set_fact:
  8. openshift_hosted_registry_selector: "{{ openshift_registry_selector | default(openshift_hosted_infra_selector) }}"
  9. when: openshift_hosted_registry_selector is not defined and openshift_hosted_infra_selector is defined
  10. - name: Set hosted facts
  11. openshift_facts:
  12. role: "{{ item }}"
  13. openshift_env: "{{ hostvars
  14. | oo_merge_hostvars(vars, inventory_hostname)
  15. | oo_openshift_env }}"
  16. openshift_env_structures:
  17. - 'openshift.hosted.router.*'
  18. with_items: [hosted, logging, loggingops, metrics]