Ansible Role nfs_client
This role installs NFS client utilities and controls active and configured NFS mount points in /etc/fstab
.
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
List of NFS mounts to create. Subkeys:
|
unset |
Example:
# optional
nfs_client__mounts:
- src: 'nfs-server.example.com:/path/to/exported/data'
path: '/mnt/nfs/data'
opts: 'defaults'
state: 'mounted'
Troubleshooting
mount.nfs: access denied by server while mounting
: Run exportfs -rv
on the NFS server and try again.