Add an autofs role for mounting removable media automatically on FreeBSD.
This commit is contained in:
11
ansible/roles/autofs/files/auto_master
Normal file
11
ansible/roles/autofs/files/auto_master
Normal file
@@ -0,0 +1,11 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Automounter master map, see auto_master(5) for details.
|
||||
#
|
||||
/net -hosts -nobrowse,nosuid,intr
|
||||
# When using the -media special map, make sure to edit devd.conf(5)
|
||||
# to move the call to "automount -c" out of the comments section.
|
||||
/media -media -nosuid,noatime,autoro
|
||||
#/- -noauto
|
||||
|
||||
# /mtp -simple-mtpfs -allow_other
|
||||
6
ansible/roles/autofs/files/autofs_devd.conf
Normal file
6
ansible/roles/autofs/files/autofs_devd.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
# Discard autofs caches, useful for the -media special map.
|
||||
notify 100 {
|
||||
match "system" "GEOM";
|
||||
match "subsystem" "DEV";
|
||||
action "/usr/sbin/automount -c";
|
||||
};
|
||||
1
ansible/roles/autofs/files/autofs_loader.conf
Normal file
1
ansible/roles/autofs/files/autofs_loader.conf
Normal file
@@ -0,0 +1 @@
|
||||
autofs_load=YES
|
||||
1
ansible/roles/autofs/files/automount_rc.conf
Normal file
1
ansible/roles/autofs/files/automount_rc.conf
Normal file
@@ -0,0 +1 @@
|
||||
autofs_enable="YES"
|
||||
Reference in New Issue
Block a user