NFS server
Will
- enable nfs daemons
- enable nfsuserd to map uid<->uidnumbers
- create exports blocks in /etc/exports for each share when share.nfsshares is not empty
shares
([]): list of "share" dicts, with:path
('') MANDATORY directory to sharenfsshares
([]) MANDATORY list of /etc/exports lines (without path)
mountd_add_flags ("-l")
flags to pass to mountd (man mountd)mountd_port (4046)
specify port for mountdnfsv4_only (False)
NFSv4 only server (FreeBSD 13+)
- hosts: servers
roles:
- criecm.nfs_server
vars:
shares:
- name: "myshare"
path: "/shares/t"
nfsshares:
- "-maproot=0 -network 2001:0DB8:fe43:ff44:/64"
- "-network 192.0.2.0/24"
BSD