Browse Source

Ensure registry url evaluated when creating router.

Andrew Butcher 8 years ago
parent
commit
c00fe0be39
1 changed files with 3 additions and 1 deletions
  1. 3 1
      playbooks/common/openshift-cluster/openshift_hosted.yml

+ 3 - 1
playbooks/common/openshift-cluster/openshift_hosted.yml

@@ -1,5 +1,7 @@
 - name: Create Hosted Resources
   hosts: oo_first_master
+  pre_tasks:
+  - set_fact:
+      openshift_hosted_router_registryurl: "{{ hostvars[groups.oo_first_master.0].openshift.master.registry_url }}"
   roles:
   - role: openshift_hosted
-    openshift_hosted_router_registryurl: "{{ hostvars[groups.oo_first_master.0].openshift.master.registry_url }}"