Explorar el Código

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 hace 8 años
padre
commit
afff2bc16f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      playbooks/common/openshift-master/restart_hosts.yml

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