Преглед изворни кода

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 година
родитељ
комит
afff2bc16f
1 измењених фајлова са 2 додато и 1 уклоњено
  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,