From c7bc8b2afda0d1bcec857cbf48e9be12e13fa316 Mon Sep 17 00:00:00 2001
From: Alexandre Iooss <erdnaxe@crans.org>
Date: Sun, 9 Jun 2019 17:45:56 +0200
Subject: [PATCH] Add APT retry

---
 roles/wireguard/tasks/main.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml
index bf89f3c7..465ece18 100644
--- a/roles/wireguard/tasks/main.yml
+++ b/roles/wireguard/tasks/main.yml
@@ -12,4 +12,9 @@
 - name: Install wireguard
   apt:
     update_cache: true
-    name: wireguard
+    name:
+      - wireguard
+      - resolvconf
+  register: apt_result
+  retries: 3
+  until: apt_result is succeeded
-- 
GitLab