This repository contains anisble roles and a playbook that will provision a basic NFS server, with a firewall in front.
The playbook by default will provision the NFS server on the host configured in inventory.yaml. You should edit the inventory.yaml file to point to your relevant host. The below steps are an example of how you can use this playbook to provision the NFS server:
cd
to the root directory of this repository.- Edit inventory.yaml with your approriate host details.
- Edit roles/nfs-exports/vars/main.yaml to export the directories you require.
- Execute
./provision.yaml -K
. - Enter your sudo password.
The following is a list of additional resource that I found useful when debugging the NFS server or when attempting to mount a shared folder.