Ping up to 20 times until success
We don't need to spend 20 seconds pinging in every job. Instead just ping until we succeed. Change-Id: I2e42ba2aa65a3a6c1b440c436f4ee7a3092b31e8
This commit is contained in:
parent
57ee9e3a13
commit
975054cdcd
|
@ -1,3 +1,4 @@
|
|||
- name: Perform ping check
|
||||
command: ping -c {{ PING_TIMES }} {{ host }}
|
||||
command: ping -c 1 {{ host }}
|
||||
changed_when: False
|
||||
retries: "{{ PING_TIMES }}"
|
||||
|
|
Loading…
Reference in New Issue