summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorMark Chappell <mchappel@redhat.com>2016-12-02 12:27:55 +0100
committerMark Chappell <mchappel@redhat.com>2016-12-02 12:28:11 +0100
commit936532e266a41550edb7e037289b77f616af1ee2 (patch)
treef2641af90b3c439d589c50b65e34f552c00eeebb /playbooks
parenteb9a8e5603ea4f0fc9291248c1cb59545f8a023e (diff)
downloadopenshift-936532e266a41550edb7e037289b77f616af1ee2.tar.gz
openshift-936532e266a41550edb7e037289b77f616af1ee2.tar.bz2
openshift-936532e266a41550edb7e037289b77f616af1ee2.tar.xz
openshift-936532e266a41550edb7e037289b77f616af1ee2.zip
openshift-master/restart : use openshift.common.hostname instead of inventory_hostname
When using a dynamic inventory inventory_hostname isn't guaranteed to be usable. We should use openshift.common.hostname which already copes with this
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-master/restart_hosts.yml2
-rw-r--r--playbooks/common/openshift-master/restart_services.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/common/openshift-master/restart_hosts.yml b/playbooks/common/openshift-master/restart_hosts.yml
index b1c36718c..4e48f94d1 100644
--- a/playbooks/common/openshift-master/restart_hosts.yml
+++ b/playbooks/common/openshift-master/restart_hosts.yml
@@ -11,7 +11,7 @@
become: no
local_action:
module: wait_for
- host="{{ inventory_hostname }}"
+ host="{{ openshift.common.hostname }}"
state=started
delay=10
port="{{ openshift.master.api_port }}"
diff --git a/playbooks/common/openshift-master/restart_services.yml b/playbooks/common/openshift-master/restart_services.yml
index 5e539cd65..a5ab62dc5 100644
--- a/playbooks/common/openshift-master/restart_services.yml
+++ b/playbooks/common/openshift-master/restart_services.yml
@@ -12,7 +12,7 @@
become: no
local_action:
module: wait_for
- host="{{ inventory_hostname }}"
+ host="{{ openshift.common.hostname }}"
state=started
delay=10
port="{{ openshift.master.api_port }}"