Skip to content

Latest commit

 

History

History

nfs_server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Role Variables

See defaults/main.yml for details.

catena_nfs_exports

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)

catena_nfs_exports_root

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)