Name: ansible-nfs
Owner: EMBL-EBI Technology & Science Integration
Description: Ansible role to configure nfs share and mount points
Created: 2017-07-10 11:05:20.0
Updated: 2017-07-10 15:10:40.0
Pushed: 2017-07-10 14:52:21.0
Size: 8
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Configure multiple NFS export and mount points.
The role provides support to both NFS file server and clients. The operating mode is specified by nfs_mode
(client is the default).
The role supports multiple exports (in server moded) and mounts (in client mode) via nfs_exports
and nfs_mounts
lists respectively. Default options for both operating modes are define with variables prefixed nfs_default_
which can be overrided on each export or mount (see defaults/main.yml
). Exports on the server are configured using a flexible /etc/exports.d
directory. The name of this file is set with nfs_name
. Exported directories are exported/mounted read-only by default. Use nfs_export_opts
and nfs_mount_opts
to change that option and others.
For servers it will configure the exports and firewall. For clients it will add the NFS export to fstab and mount it.
The server is configured to support both NFSv3 and NFSv4 (default). On the client side, one can specify which version to use with nfs_version
.
The quota
package is also installed on servers and clients, but no configured is done at the moment.
See meta/main.yml
.
See defaults/main.yml
.
None.
Example:
sts: fileserver
les:
- role: nfs
nfs_exports:
- name: export1
clients: '{{groups['fileserver-clients']}}'
export_dir: /dir/to/export1
sts: fileserver-clients
les:
- role: nfs
nfs_mounts:
- server: fileserver
export_dir: /dir/to/export1
mount_point: /mnt/mount1
Released under the MIT license.
Luis Gracia while at EMBL-EBI: