summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-05-10 17:13:14 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-05-17 09:22:47 -0400
commita939f5c518bbcbb1be0713781e2fd1f405c36751 (patch)
tree98d5eeba792d043268d507c7f1d25d269965ace6
parenta077b688e56374de31587bebcf4de20b22a6d51c (diff)
downloadopenshift-a939f5c518bbcbb1be0713781e2fd1f405c36751.tar.gz
openshift-a939f5c518bbcbb1be0713781e2fd1f405c36751.tar.bz2
openshift-a939f5c518bbcbb1be0713781e2fd1f405c36751.tar.xz
openshift-a939f5c518bbcbb1be0713781e2fd1f405c36751.zip
Set openshift.common.hostname early in playbook execution.
-rw-r--r--playbooks/common/openshift-cluster/initialize_facts.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/playbooks/common/openshift-cluster/initialize_facts.yml b/playbooks/common/openshift-cluster/initialize_facts.yml
index 9a844e216..cda490b1f 100644
--- a/playbooks/common/openshift-cluster/initialize_facts.yml
+++ b/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) }}"