apkawa.nfs
Ansible role: nfs
Ansible role for NFS client and/or NFS server
Requirements
None
Role Variables
Available variables are listed below, along with default values (see defaults/main.yml):
nfs_client: yes
nfs_client_mounts:
- src: example.com:/export/
mount_point: /mnt/example_nfs/
# optional
opts: rw,async
deleted: false
# NFS server. disabled by default
nfs_server: no
nfs_server_shares:
- path: /path/to/export
# optional
mount_from: /real_path/what/you/hide
# default *
allow:
- 127.0.0.1
- ip: 10.0.0.2
# override for ip
options:
- ro
- sync
- ip: 10.0.0.4
options: (rw,sync)
# default
options: (rw,sync)
delete: no
Dependencies
None
Example Playbook
- hosts: all
roles:
- role: apkawa.nfs
License
MIT
Author Information
Apkawa
Contributing
- Install docker
- Install pipenv
- Initialize pipenv:
pipenv install --dev - Run tests
pipenv run -- tox -e centos7
