oscpe262.autofs
Role Name
This is an Ansible role to set up autofs, which helps with automatic file system mounting. It uses two lists:
autofs_empty_maps
: This list creates a file named<auto.foo>
containing+auto.foo
.autofs_indirect_maps
: This can be used for both direct and indirect maps and will add the path toauto.master
.
The example below creates a simple auto.home, a direct mount called auto.nobackup, and an indirect mount named auto.catdata. Each entry in mounts
requires a name
and a url
. The url
can be left blank if you prefer. You can also provide options
(these are optional and will be prefixed with a dash).
Requirements
Role Variables
Variable | Default | Comments (type) |
---|---|---|
autofs_empty_maps |
[] | See the description above. |
autofs_indirect_maps |
[] | See the example playbook below. |
autofs_default_nfs |
4 | Default NFS version for autofs |
autofs_sysconf_options |
"" | Options in /etc/sysconfig/autofs |
autofs_create_dirs |
[] | Directories to create |
Dependencies
Example Playbook
- hosts: foo
roles:
- role: oscpe262.autofs
vars:
autofs_empty_maps:
- "auto.home"
autofs_indirect_maps:
- name: auto.nobackup
path: /nobackup
options: "rw,intr,async,nfsvers=3,actime=0,tcp,browse"
mounts:
- name: "nfs1"
url: nfs1.example.com:/export/nobackup
- name: auto.bardata
path: '/'
options: "rw,grpid,intr,noquota"
mounts:
- name: "+auto.bardata"
url: " "
License
MIT
Author Information
We welcome issues, feature requests, ideas, and suggestions in the Issues section. Pull requests are also encouraged. Please create a topic branch for any proposed changes; it makes merging back into the project easier.
- Oscar Petersson (Maintainer)
Informazioni sul progetto
A role for setting up autofs.
Installa
ansible-galaxy install oscpe262.autofs
Licenza
mit
Download
162
Proprietario
Cloud Engineer, Computer Science Engineer, Know how to exit vi(m).