From 99a1ab093c97239775c5a513360c966b0a9ab232 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 26 May 2021 22:16:57 +0100 Subject: [PATCH] Update APT cache --- roles/debian/tasks/apt-sources.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/debian/tasks/apt-sources.yml b/roles/debian/tasks/apt-sources.yml index 43b291a..9671d35 100644 --- a/roles/debian/tasks/apt-sources.yml +++ b/roles/debian/tasks/apt-sources.yml @@ -18,3 +18,8 @@ ansible.builtin.template: src: sources.list dest: "/etc/apt/sources.list" +- name: Update APT cache + become: true + ansible.builtin.apt: + update_cache: yes + force_apt_get: yes