From afff2bc16f779f8550ec152d7d5fd718c95e4109 Mon Sep 17 00:00:00 2001 From: Devan Goodwin Date: Wed, 1 Feb 2017 09:34:41 -0400 Subject: 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. --- playbooks/common/openshift-master/restart_hosts.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'playbooks') 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, -- cgit v1.2.3