CI: improve Docker setup (#550)

* Cache has already been updated a few lines before.

* When skipping Docker cleanup, create flag to avoid the expensive part of the setup (including package manager cache update) to be run again.
This commit is contained in:
Felix Fontein
2023-01-08 22:21:59 +01:00
committed by GitHub
parent dc5af8985b
commit 134d32cae6
2 changed files with 44 additions and 32 deletions
@@ -35,7 +35,6 @@
apt:
name: '{{ docker_packages if needs_docker_daemon else docker_cli_packages }}'
state: present
update_cache: true
always:
- name: Restore /usr/sbin/policy-rc.d (if needed)