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