test(tailscale): let apt reuse downloaded packages in the default scenario
The Ubuntu base image's /etc/apt/apt.conf.d/docker-clean deletes every downloaded .deb after an install, so verify's downgrade, update and reinstalls fetched tailscale from pkgs.tailscale.com again each time. A prepare playbook removes it; the install from the real repository stays, and apt still checks a cached .deb against the repository's hashes. Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
1 parent
6e3ea4521b
commit
0eade70b56
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
# The base image's docker-clean deletes each downloaded .deb after an install, so verify's update and
|
||||
# reinstalls would fetch tailscale again; without it apt reuses the cached .deb after checking its hash.
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Keep downloaded packages in the apt cache
|
||||
ansible.builtin.file:
|
||||
path: /etc/apt/apt.conf.d/docker-clean
|
||||
state: absent
|
||||
Reference in new issue
Block a user