nfs

Ansible role: NFS

Only tested on Archlinux.

Examples:

Override defaults

# Add this list to share a directory, server side
nfs_exports:
  - "/srv/nfs/share        192.168.10.1/24(rw,sync,subtree_check,all_squash)"

# Add this list to mount a remote nfs shared, client side
nfs_imports:
  - local_path:  /path/share_dir
    remote_path: /srv/nfs/share
    server_host: 192.168.1.32 or hostname
    state:       mounted         # optional

This role is a mix of these repos:


Todo:

  • Add "state" to nfs exports
  • Template nfs.conf
About

A role to install a NFS server and client

Install
ansible-galaxy install lunics/ansible_role_nfs
GitHub repository
License
gpl-3.0
Downloads
13
Owner