/ansible-nfs-client

Ansible role to set up NFS in Debian-like systems (client side)

Primary LanguageDockerfileMIT LicenseMIT

nfs-client

CI Ansible Galaxy

Set up NFS in Debian-like systems (client side)

Requirements

None

Variables

  • nfs_client_mounts: [default: []]: Shares to mount
  • nfs_client_mounts.{n}.src: [required]: The remote path to the share (e.g. 192.168.1.10:/home)
  • nfs_client_mounts.{n}.path: [required]: The local path where the share should be mounted (e.g. /home)
  • nfs_client_mounts.{n}.state: [default: 'mounted']: State
  • nfs_client_mounts.{n}.fstype: [default: 'nfs']: Filesystem type (e.g. nfs4)
  • nfs_client_mounts.{n}.opts: [optional]: Mount options, see fstab(5)
  • nfs_client_mounts.{n}.dump: [optional]: Dump, see fstab(5)
  • nfs_client_mounts.{n}.passno: [optional]: Passno, see fstab(5)

Dependencies

None

Recommended

  • ansible-nfs-server (see)

Example

---
- hosts: all
  roles:
    - nfs-client
  vars:
    nfs_client_mounts:
      - src: 192.168.1.10:/home
        path: /home

License

MIT

Author Information

  • Mischa ter Smitten

Feedback, bug-reports, requests, ...

Are welcome!