catena.system.nfs_server
Manage list of NFS exports via Ansible. Custom exports are placed in /etc/exports.d/*.exports
, the global configuration file /etc/nfs.conf
is untouched. For mounting check the catena.system.mount role.
See defaults/main.yml
for details.
List of custom exports. They must be below the NFSv4 root directory. See catena_nfs_exports_root
.
# Example
catena_nfs_exports:
- name: Storage # Description
path: /srv/nfs/storage # Below NFS root
options: 192.168.0.0/24(rw,async) # See man exports(5)
NFSv4 root directory (denoted by fsid=0
). Other directories in catena_nfs_exports
must be below it.
# Defaults
catena_nfs_exports_root:
- name: NFSv4 root
path: /srv/nfs
options: 192.168.0.0/24(rw,sync,crossmnt,fsid=0)