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:
Clark Boylan 2017-04-17 08:59:26 -07:00
parent 57ee9e3a13
commit 975054cdcd
1 changed files with 2 additions and 1 deletions

View File

@ -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 }}"