From: Alexander Barton Date: Tue, 6 Nov 2018 10:37:05 +0000 (+0100) Subject: autofs: Make mount options for /net configurable X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=AnsibleRoles.git;a=commitdiff_plain;h=cc0010127672e117b5baf54077b3f6ab9991c9a0 autofs: Make mount options for /net configurable This introduces the new variable "autofs_mount_options_net". --- diff --git a/roles/autofs/defaults/main.yml b/roles/autofs/defaults/main.yml new file mode 100644 index 0000000..a0b5833 --- /dev/null +++ b/roles/autofs/defaults/main.yml @@ -0,0 +1,5 @@ +--- +# autofs defaults + +# Mount options for the /net hierarchy (NFS). +autofs_mount_options_net: "soft" diff --git a/roles/autofs/templates/net.autofs.j2 b/roles/autofs/templates/net.autofs.j2 index c19459a..a8a7e52 100644 --- a/roles/autofs/templates/net.autofs.j2 +++ b/roles/autofs/templates/net.autofs.j2 @@ -3,4 +3,4 @@ # {{ ansible_managed }} # --- -/net -hosts soft +/net -hosts {{ autofs_mount_options_net }}