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
12 lines
422 B
YAML
12 lines
422 B
YAML
---
|
|
# 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
|