aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd/tasks/os_freebsd.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-11 11:56:27 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-11 11:56:27 +0000
commitc1e3bbbe04863536e88d4d79afbbb85253e7d3b4 (patch)
tree9b9eecdef56cdf16dbef3e9b63e1e70312770a31 /roles/nfsd/tasks/os_freebsd.yml
parent13ef8e5744442b6a6d61a96888f87a1c96c44ba6 (diff)
downloadrules-c1e3bbbe04863536e88d4d79afbbb85253e7d3b4.tar.gz
roles/nfsd: Consistent configuration with other roles
Diffstat (limited to 'roles/nfsd/tasks/os_freebsd.yml')
-rw-r--r--roles/nfsd/tasks/os_freebsd.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/nfsd/tasks/os_freebsd.yml b/roles/nfsd/tasks/os_freebsd.yml
new file mode 100644
index 0000000..2a8a8cd
--- /dev/null
+++ b/roles/nfsd/tasks/os_freebsd.yml
@@ -0,0 +1,15 @@
+- name: edit daemons flags
+ 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: enable and restart rpcbind
+ service:
+ name: rpcbind
+ state: restarted
+ enabled: true
remember that computers suck.