Kaynağa Gözat

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.
Devan Goodwin 8 yıl önce
ebeveyn
işleme
afff2bc16f

+ 2 - 1
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,