From cc0010127672e117b5baf54077b3f6ab9991c9a0 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 6 Nov 2018 11:37:05 +0100 Subject: [PATCH 1/1] autofs: Make mount options for /net configurable This introduces the new variable "autofs_mount_options_net". --- roles/autofs/defaults/main.yml | 5 +++++ roles/autofs/templates/net.autofs.j2 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 roles/autofs/defaults/main.yml 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 }} -- 2.39.2