소스 검색

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,