Skip to content

justereseau/ansible-nfs-mount

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFS Mount

Manage NFS mounts.

Role Variables

  • nfs_version: NFS version to use (default: nfs)
  • nfs_mount_opts: Default NFS mount options (default: defaults)
  • nfs_share_mounts: List of dictionaries of NFS shares:
    • path: mount-point
    • mount: nfs server path
    • opts: mount options (optional)
    • nfs_version: NFS version to use (optional; default to {{ nfs_version }})

Example Playbook

- hosts: localhost
  roles:
  - role: nfs-mount
    nfs_share_mounts:
    - path: /mnt/remote
      location: nfs.example.org:/data
      nfs_version: nfs
    - path: /mnt/readonly
      location: nfs.example.org:/read-only
      opts: "{{ nfs_mount_opts }},ro"
      nfs_version: nfs4

Author Information

ome-devel@lists.openmicroscopy.org.uk sonic@justereseau.ca