Skip to content

nephelaiio/ansible-role-nfs

Repository files navigation

nephelaiio.nfs

Build Status Ansible Galaxy

An ansible role to install and configure nfs

Role Variables

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.

Example Playbook

- hosts: nfs
  vars:
     nfs_exports:
       - /var/nfs/backups ro,sync,no_root_squash,no_subtree_check
  roles:
     - role: nephelaiio.nfs

Testing

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

License

This project is licensed under the terms of the MIT License

About

An ansible role to install and configure nfs

Resources

License

Stars

Watchers

Forks

Packages

No packages published