aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd/tasks/_freebsd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nfsd/tasks/_freebsd.yml')
-rw-r--r--roles/nfsd/tasks/_freebsd.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/nfsd/tasks/_freebsd.yml b/roles/nfsd/tasks/_freebsd.yml
new file mode 100644
index 0000000..2cae34a
--- /dev/null
+++ b/roles/nfsd/tasks/_freebsd.yml
@@ -0,0 +1,20 @@
+
+# nfsd ~~ roles/nfsd/tasks/_freebsd.yml
+
+---
+
+- name: ensure daemons flag
+ lineinfile:
+ path: /etc/rc.conf
+ regexp: "^{{ item[0] }}="
+ line: "{{ item[0] }}=\"{{ item[1] }}\""
+ loop:
+ - ["nfs_server_flags", "-tun {{ nfsd_nb_process }}"]
+ - ["rpcbind_enable=", "YES"]
+ - ["mountd_flags", "-r"]
+
+- name: ensure rpcbind is enabled and restarted
+ service:
+ name: rpcbind
+ state: restarted
+ enabled: true
remember that computers suck.