Skip to content

CSCfi/ansible-role-nfs_mount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status ansible-role-nfs_mount

Mounts NFS

Requirements

An NFS server

Role Variables

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".

Dependencies

None

Example Playbook

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 }

License

MIT

Author Information