test(nfs_client): refresh the apt cache in the scenario's prepare
Build / build (pull_request) Successful in 31s
Molecule / molecule (pull_request) Successful in 2m5s
Lint / lint (pull_request) Successful in 2m47s

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
This commit is contained in:
Dragonish committed 2026-11-27 21:55:02 +00:00
1 parent 5ce5e3c932
commit fcd2290e14
1 file changed
+6
@@ -6,6 +6,12 @@
hosts: all hosts: all
gather_facts: false gather_facts: false
tasks: 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 - name: Seed the fstab lines
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/fstab path: /etc/fstab