--- - name: Fix NFS mounting on warden node hosts: warden become: yes tasks: - name: Ensure rpcbind is running systemd: name: rpcbind state: started enabled: yes - name: Ensure nfs-client.target is active systemd: name: nfs-client.target state: started enabled: yes - name: Create consul-shared directory file: path: /opt/consul-shared state: directory mode: '0755' - name: Mount NFS share mount: path: /opt/consul-shared src: snail:/fs/1000/nfs fstype: nfs opts: rw,sync,vers=3 state: mounted - name: Add to fstab for persistence mount: path: /opt/consul-shared src: snail:/fs/1000/nfs fstype: nfs opts: rw,sync,vers=3 state: present - name: Verify mount command: df -h /opt/consul-shared register: mount_result - name: Display mount result debug: var: mount_result.stdout