From fcd2290e14a8619963e5acd758f5d91d6b0b9237 Mon Sep 17 00:00:00 2001 From: Dragonish Date: Fri, 27 Nov 2026 21:55:02 +0000 Subject: [PATCH] test(nfs_client): refresh the apt cache in the scenario's prepare The molecule image ships without apt lists, and --check does not refresh them, so the fresh-host check found no nfs-common to install and failed with "No package matching 'nfs-common' is available". The docker, pihole, system_baseline and traefik scenarios refresh the cache in prepare for the same reason. Refs #402 Assisted-by: Claude Code --- roles/nfs_client/molecule/default/prepare.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/nfs_client/molecule/default/prepare.yml b/roles/nfs_client/molecule/default/prepare.yml index 3be897e..95fae3b 100644 --- a/roles/nfs_client/molecule/default/prepare.yml +++ b/roles/nfs_client/molecule/default/prepare.yml @@ -6,6 +6,12 @@ hosts: all gather_facts: false tasks: + # The image ships without apt lists, and --check does not refresh them, so without this the + # fresh-host check finds no nfs-common to install. + - name: Refresh the apt cache + ansible.builtin.apt: + update_cache: true + - name: Seed the fstab lines ansible.builtin.lineinfile: path: /etc/fstab