From 27a95f005a94e885cdab7b77bdad9f2aa7880b3c Mon Sep 17 00:00:00 2001 From: Vedran Vucetic Date: Wed, 24 Oct 2018 14:33:39 +0200 Subject: [PATCH] Retry update cache task --- tasks/setup-Debian.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 554dc2e..8c3371b 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -2,6 +2,10 @@ - name: Update apt cache. apt: update_cache=yes cache_valid_time=86400 changed_when: false + register: command_result + retries: 20 + delay: 10 + until: command_result | success - name: Ensure nginx is installed. apt: