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