Skip to content

Commit

Permalink
docker: always update the package cache (#1282)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Feb 3, 2024
1 parent 9f6b1b0 commit 76b57bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions roles/docker/tasks/install-docker-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,12 @@
update_cache: true
mode: 0644
when: docker_configure_repository|bool
register: result_add_repository

- name: Force update package cache # noqa: no-handler
- name: Update package cache
become: true
ansible.builtin.apt:
update_cache: true
lock_timeout: "{{ apt_lock_timeout | default(300) }}"
when: result_add_repository.changed

- name: Pin package version
become: true
Expand Down

0 comments on commit 76b57bc

Please sign in to comment.