From 67905becbee4c279c70d3f964b541a2933bf8846 Mon Sep 17 00:00:00 2001 From: binary Date: Tue, 2 Mar 2021 16:22:13 +0100 Subject: Add nfsd role for nfs server on BSD --- roles/nfsd/templates/etc-exports.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 roles/nfsd/templates/etc-exports.j2 (limited to 'roles/nfsd/templates') 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 %} -- cgit v1.2.3