nfs_mount
NFS Mount
Role Variables
nfs_mount_opts
: Default NFS mount optionsnfs_version
: Default NFS version to use (4)nfs_share_mounts
: List of dictionaries of NFS shares:- path: mount-point
- location: nfs server path
- opts: mount options (optional)
- dump: fs to dump (optional)
- passno: fs checks on reboot (optional)
- state: choose (https://docs.ansible.com/ansible/latest/modules/mount_module.html#parameter-state "the state") (default: mounted)
Example Playbook
- hosts: localhost
vars:
nfs_version: 3 # to force nfs version to 3.
roles:
- role: ome.nfs_mount
nfs_share_mounts:
- path: /mnt/remote
location: nfs.example.org:/data
# remove a mount from a server
- path: /mnt/remote_old
location: nfs.example.org:/data1337
state: absent
- path: /mnt/readonly
location: nfs.example.org:/read-only
opts: "{{ nfs_mount_opts }},ro"
- path: /mnt/ex_passno
location: nfs.example.org:/ex_passno
passno: 0
- path: /mnt/ex_dump
location: nfs.example.org:/ex_dump
dump: 0
Author Information
Install
ansible-galaxy install ome/ansible-role-nfs-mount
License
bsd-2-clause
Downloads
168831
Owner
Software and data format standards for management of microscopy image data. Joint project between international private and public research