test(tailscale): let apt reuse downloaded packages in the default scenario
Build / build (pull_request) Successful in 23s
Lint / lint (pull_request) Successful in 2m17s
Molecule / molecule (pull_request) Successful in 6m14s

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:
Defame1297 committed 2026-11-27 14:10:53 +00:00
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