An ansible role to install and configure nfs
NFS server configuration is set by default
nfs_server: true
Set to false for client-only installation
NFS export list is empty by default
nfs_exports: []
You can customize them as a list of /etc/exports file entries:
nfs_exports:
- / *(ro,fsid=0)
- /home *(rw,sync,nohide)
Please refer to the defaults file for an up to date list of input parameters.
- hosts: nfs
vars:
nfs_exports:
- /var/nfs/backups ro,sync,no_root_squash,no_subtree_check
roles:
- role: nephelaiio.nfs
Please make sure your environment has docker installed in order to run role validation tests. Additional python dependencies are listed in the requirements file
Role is tested against the following distributions (docker images):
- Ubuntu Bionic
- Ubuntu Xenial
- CentOS 7
- Debian Stretch
You can test the role directly from sources using command molecule test
This project is licensed under the terms of the MIT License