summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-master
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2017-02-01 09:34:41 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2017-02-01 09:36:26 -0400
commitafff2bc16f779f8550ec152d7d5fd718c95e4109 (patch)
treebd600b8d0cc17f0d2ec7874c317f39ec1eb4d882 /playbooks/common/openshift-master
parent80c24368564e2b8328c63d21902f54cb3ea12c4d (diff)
downloadopenshift-afff2bc16f779f8550ec152d7d5fd718c95e4109.tar.gz
openshift-afff2bc16f779f8550ec152d7d5fd718c95e4109.tar.bz2
openshift-afff2bc16f779f8550ec152d7d5fd718c95e4109.tar.xz
openshift-afff2bc16f779f8550ec152d7d5fd718c95e4109.zip
Fix host when waiting for a master system restart.
Discovered situations where the inventory hostname may not be resolvable with operations. Switching to the ssh host (an IP) should always be correct.
Diffstat (limited to 'playbooks/common/openshift-master')
-rw-r--r--playbooks/common/openshift-master/restart_hosts.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/playbooks/common/openshift-master/restart_hosts.yml b/playbooks/common/openshift-master/restart_hosts.yml
index 832301e3d..475144dbf 100644
--- a/playbooks/common/openshift-master/restart_hosts.yml
+++ b/playbooks/common/openshift-master/restart_hosts.yml
@@ -10,9 +10,10 @@
- name: Wait for master to restart
local_action:
module: wait_for
- host="{{ inventory_hostname }}"
+ host="{{ ansible_host }}"
state=started
delay=10
+ timeout=600
become: no
# Now that ssh is back up we can wait for API on the remote system,