]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
autofs: Make mount options for /net configurable
authorAlexander Barton <alex@barton.de>
Tue, 6 Nov 2018 10:37:05 +0000 (11:37 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 6 Nov 2018 10:37:05 +0000 (11:37 +0100)
This introduces the new variable "autofs_mount_options_net".

roles/autofs/defaults/main.yml [new file with mode: 0644]
roles/autofs/templates/net.autofs.j2

diff --git a/roles/autofs/defaults/main.yml b/roles/autofs/defaults/main.yml
new file mode 100644 (file)
index 0000000..a0b5833
--- /dev/null
@@ -0,0 +1,5 @@
+---
+# autofs defaults
+
+# Mount options for the /net hierarchy (NFS).
+autofs_mount_options_net: "soft"
index c19459a9a075d7dd505a9594e20a1387f737e43d..a8a7e52557196e6a616ff5a7ed35afbe61f3db46 100644 (file)
@@ -3,4 +3,4 @@
 #  {{ ansible_managed }}
 # ---
 
-/net   -hosts  soft
+/net   -hosts  {{ autofs_mount_options_net }}