Skip to main content

Nfs Role

Install and configure the NFS server and its exports.


Variables​

VariableTypeOptionsDefaultDescription
nfs_service_namelist of dict---[{"name":"nfs-server.service"},{"name":"rpcbind.service"}]list of NFS services to manage
nfs_service_name.namestring---systemd service unit name
nfs_service_statestringreloaded, restarted, started, stoppedstarteddesired state of NFS services
nfs_service_enabledbooltrue, falsetruewhether NFS services are enabled at boot
nfs_package_statestringpresent, absent, latestpresentdesired state of NFS packages
nfs_packagelist of string---["nfs-utils"]list of packages to install
nfs_exports_filestring---/etc/exportspath to the exports file
nfs_exportslist of dict---list of NFS exports to manage
nfs_exports.pathstring---exported directory path
nfs_exports.hoststring---allowed client host or CIDR
nfs_exports.optionsstring---export options (e.g. rw,sync,no_root_squash)
nfs_exports.groupstring---directory group owner
nfs_exports.userstring---directory user owner
nfs_exports.permissionsstring---directory permissions (e.g. 0755)
nfs_exports_statestringpresent, absent, skippresentdesired state of export entries
nfs_firewalld_zonestring---firewall zone for NFS rules
nfs_firewalld_servicestring---nfsfirewall service name
nfs_firewalld_statestringpresent, absent, enabled, disabled, skipenableddesired state of firewall rules