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