Browse Source

Set openshift.common.hostname early in playbook execution.

Andrew Butcher 9 years ago
parent
commit
a939f5c518
1 changed files with 4 additions and 1 deletions
  1. 4 1
      playbooks/common/openshift-cluster/initialize_facts.yml

+ 4 - 1
playbooks/common/openshift-cluster/initialize_facts.yml

@@ -1,7 +1,10 @@
 ---
 - name: Initialize host facts
-  hosts: OSEv3
+  hosts: oo_all_hosts
   roles:
   - openshift_facts
   tasks:
   - openshift_facts:
+      role: common
+      local_facts:
+        hostname: "{{ openshift_hostname | default(None) }}"