diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2017-02-01 09:34:41 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2017-02-01 09:36:26 -0400 |
commit | afff2bc16f779f8550ec152d7d5fd718c95e4109 (patch) | |
tree | bd600b8d0cc17f0d2ec7874c317f39ec1eb4d882 /playbooks/common/openshift-master | |
parent | 80c24368564e2b8328c63d21902f54cb3ea12c4d (diff) | |
download | openshift-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.yml | 3 |
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, |