Mounts NFS
An NFS server
nfs_mounts: - { fstype: "nfs4", name: "/home", src: "{{ nfs_mount_addr }}:/home", state: "mounted", opts: "defaults" } - { name: "/scratch", src: "{{ nfs_mount_addr }}:/scratch", dirmode: "1777" }
Notice how fstype defaults to "nfs4", state defaults to "mounted" and opts defaults to "defaults".
None
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: ansible-role-nfs_mount }
MIT