From 0eade70b5616585def96985c22842ac1561890b1 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Fri, 27 Nov 2026 14:10:53 +0000 Subject: [PATCH] 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 --- roles/tailscale/molecule/default/prepare.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/tailscale/molecule/default/prepare.yml diff --git a/roles/tailscale/molecule/default/prepare.yml b/roles/tailscale/molecule/default/prepare.yml new file mode 100644 index 0000000..0f3a21a --- /dev/null +++ b/roles/tailscale/molecule/default/prepare.yml @@ -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