From d4b2996c0fa6cd37566120bf1ea3970826657a63 Mon Sep 17 00:00:00 2001 From: les Date: Thu, 22 Oct 2020 00:18:00 +0200 Subject: [PATCH] [common] update apt cache --- roles/common/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index b783b8d..3fa8cee 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,4 +1,10 @@ --- +- name: Update apt cache if needed + become: yes + apt: + update_cache=yes + cache_valid_time=3600 + - name: Install generic deps apt: pkg: @@ -17,4 +23,4 @@ dest: /etc/apt/apt.conf.d/20auto-upgrades owner: root group: root - mode: 0644 \ No newline at end of file + mode: 0644