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 c19459a..a8a7e52 100644 (file)
@@ -3,4 +3,4 @@
 #  {{ ansible_managed }}
 # ---
 
-/net   -hosts  soft
+/net   -hosts  {{ autofs_mount_options_net }}