aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd/templates
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-02 16:22:13 +0100
committerbinary <me@rgoncalves.se>2021-03-02 16:22:13 +0100
commit67905becbee4c279c70d3f964b541a2933bf8846 (patch)
treedc01cd2091461e48b7bfe67bf40a6cfcc19db698 /roles/nfsd/templates
parent6c197d2eef1928b4721e8a210717f89ed342d784 (diff)
downloadinfrastructure-67905becbee4c279c70d3f964b541a2933bf8846.tar.gz
Add nfsd role for nfs server on BSD
Diffstat (limited to 'roles/nfsd/templates')
-rw-r--r--roles/nfsd/templates/etc-exports.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/nfsd/templates/etc-exports.j2 b/roles/nfsd/templates/etc-exports.j2
new file mode 100644
index 0000000..55250dd
--- /dev/null
+++ b/roles/nfsd/templates/etc-exports.j2
@@ -0,0 +1,8 @@
+
+# /etc/exports
+# managed by Ansible
+
+{% for host in groups["servers"] %}
+{% set host = dict(hostvars[host]) %}
+/data/nfs/{{ host.ansible_host }} -maproot=root -alldirs {{ host.ip.in if host.ip.in is defined }} {{ host.ip.out if host.ip.out is defined }}
+{% endfor %}
remember that computers suck.