Wait 30 seconds and retry download 87/63787/2
authorThanh Ha <zxiiro@gmail.com>
Fri, 24 Apr 2020 17:38:58 +0000 (13:38 -0400)
committerThanh Ha <zxiiro@gmail.com>
Fri, 24 Apr 2020 18:07:32 +0000 (14:07 -0400)
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 <zxiiro@gmail.com>
Change-Id: I0f2ed4c7167ea84fad3840c4e3dfbb13d214e81c

tasks/main.yml

index bf7c301..533a294 100644 (file)
         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: |