aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd/templates
diff options
context:
space:
mode:
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.