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