From: Thanh Ha Date: Fri, 24 Apr 2020 17:38:58 +0000 (-0400) Subject: Wait 30 seconds and retry download X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F63787%2F2;p=ansible%2Froles%2Flf-recommended-tools.git Wait 30 seconds and retry download Occassionally fetching PlantUML fails with read timeout or other intermittent issues. Add configuration to retry a few times before giving up. Signed-off-by: Thanh Ha Change-Id: I0f2ed4c7167ea84fad3840c4e3dfbb13d214e81c --- diff --git a/tasks/main.yml b/tasks/main.yml index bf7c301..533a294 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -35,6 +35,10 @@ url: https://sourceforge.net/projects/plantuml/files/plantuml.jar/download dest: /opt/plantuml/plantuml.jar mode: 0644 + register: result + until: result is succeeded + retries: 3 + delay: 30 - name: Install PlantUML executable script copy: content: |