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
This commit is contained in:
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
|
||||||
|
|||||||
Reference in new issue
Block a user