summaryrefslogtreecommitdiffstats
path: root/ansible/node/roles/nas
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/node/roles/nas')
-rw-r--r--ansible/node/roles/nas/tasks/generic/samba-glusterfs-once.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/node/roles/nas/tasks/generic/samba-glusterfs-once.yml b/ansible/node/roles/nas/tasks/generic/samba-glusterfs-once.yml
new file mode 100644
index 0000000..e722291
--- /dev/null
+++ b/ansible/node/roles/nas/tasks/generic/samba-glusterfs-once.yml
@@ -0,0 +1,14 @@
+---
+- name: Tweak Samba config for GlusterFS cluster filesystem
+ command: net conf setparm global "{{ p.param }}" "{{ p.value }}"
+ with_list:
+ - param: kernel share modes
+ value: "no"
+ - param: kernel oplocks
+ value: "no"
+ - param: kernel change notify
+ value: "no"
+ - param: posix locking
+ value: "no"
+ loop_control:
+ loop_var: p