From 7b4f16d74231abad31444d0db9ad07799d16013c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 13 Jan 2022 21:58:22 +0100 Subject: [PATCH] apt update on installs --- project/roles/common/tasks/packages_debian.yml | 5 +++-- project/roles/docker/tasks/packages_debian.yml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project/roles/common/tasks/packages_debian.yml b/project/roles/common/tasks/packages_debian.yml index c960391..1211c18 100644 --- a/project/roles/common/tasks/packages_debian.yml +++ b/project/roles/common/tasks/packages_debian.yml @@ -1,6 +1,7 @@ --- - name: Ensure debian-specific packages are installed - ansible.builtin.package: + ansible.builtin.apt: name: - vim - state: present \ No newline at end of file + state: present + update_cache: yes diff --git a/project/roles/docker/tasks/packages_debian.yml b/project/roles/docker/tasks/packages_debian.yml index e7a9e8a..acaf706 100644 --- a/project/roles/docker/tasks/packages_debian.yml +++ b/project/roles/docker/tasks/packages_debian.yml @@ -27,3 +27,4 @@ - docker-ce - docker-scan-plugin state: present + update_cache: yes