justereseau.nfs_mount

NFS Mount

Manage NFS mounts (Network File System mounts).

Role Variables

  • nfs_version: The version of NFS to use (default is nfs).
  • nfs_mount_opts: The default mount options for NFS (default is defaults).
  • nfs_share_mounts: A list of NFS shares, which includes:
    • path: The local mount point.
    • mount: The path on the NFS server.
    • opts: Any additional mount options (optional).
    • nfs_version: The NFS version to use (optional; defaults to the value of 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

Contact:

Informazioni sul progetto

Manage NFS mounts

Installa
ansible-galaxy install justereseau.nfs_mount
Licenza
wtfpl
Download
28.7k
Proprietario
(Not) Network Team at Lan ETS (Anymore)