openshift_hosted_router.yml 550 B

12345678910111213
  1. ---
  2. - name: Create Hosted Resources - router
  3. hosts: oo_first_master
  4. tasks:
  5. - set_fact:
  6. openshift_hosted_router_registryurl: "{{ hostvars[groups.oo_first_master.0].openshift.master.registry_url }}"
  7. when: "'master' in hostvars[groups.oo_first_master.0].openshift and 'registry_url' in hostvars[groups.oo_first_master.0].openshift.master"
  8. - import_role:
  9. name: openshift_hosted
  10. tasks_from: router.yml
  11. when:
  12. - openshift_hosted_manage_router | default(True) | bool
  13. - openshift_hosted_router_registryurl is defined