From c7326c85306d3912094e702469bdc7459b9d01c5 Mon Sep 17 00:00:00 2001
From: Emmanuel Cohen <atmaniak@gmail.com>
Date: Mon, 27 Jul 2020 16:08:05 +0200
Subject: [PATCH] Force latest package installation

---
 roles/bench-server/tasks/main.yml | 3 ++-
 roles/bench-worker/tasks/main.yml | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/roles/bench-server/tasks/main.yml b/roles/bench-server/tasks/main.yml
index 94a29743..661adc41 100644
--- a/roles/bench-server/tasks/main.yml
+++ b/roles/bench-server/tasks/main.yml
@@ -4,7 +4,8 @@
   apt:
     force_apt_get: true
     name: "{{ bench_server_packages }}"
-    state: present
+    state: latest
+    update_cache: yes
 
 - name: ensure configuration directory exists
   file:
diff --git a/roles/bench-worker/tasks/main.yml b/roles/bench-worker/tasks/main.yml
index ef4932ae..69071f2c 100644
--- a/roles/bench-worker/tasks/main.yml
+++ b/roles/bench-worker/tasks/main.yml
@@ -4,7 +4,8 @@
   apt:
     force_apt_get: true
     name: "{{ bench_worker_packages }}"
-    state: present
+    state: latest
+    update_cache: yes
 
 - name: ensure configuration directory exists
   file:
-- 
GitLab