Skip to content

Ansible role for setting up NFS.

License

Notifications You must be signed in to change notification settings

jomrr/ansible-role-nfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-nfs

Ansible role for setting up nfs.

Supported Platforms

  • Archlinux
  • CentOS 7
  • Ubuntu 16.04, 18.04

Requirements

Ansible 2.7 or higher is recommended.

Variables

Variables for this

variable default value in defaults/main.yml description
role_nfs_enabled False determine whether role is enabled (True) or not (False)
nfs_client False Install and configure NFS Client
nfs_server False Install and configure NFS Server
nfs_exports {} Exports for NFS Server, see example below table
nfs_rpcbind_enabled no Enable RPC Bind
---
# nfs_exports example
nfs_exports:
    '/srv/nfs_export1':
        owner: root
        group: root
        mode: '0750'
        hosts:
            127.0.0.1:
                - rw
                - async
                - no_subtree_check
                - secure

Dependencies

None.

Example Playbook

---
# role: ansible-role-nfs
# file: site.yml

- hosts: nfs_servers
  roles:
    - role: ansible-role-nfs

License and Author

Licensed under MIT License; See LICENSE file in repository.

References

ArchWiki

Releases

No releases published

Languages