diff options
author | binary <me@rgoncalves.se> | 2021-03-02 16:22:13 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-03-02 16:22:13 +0100 |
commit | 67905becbee4c279c70d3f964b541a2933bf8846 (patch) | |
tree | dc01cd2091461e48b7bfe67bf40a6cfcc19db698 /roles/nfsd/templates | |
parent | 6c197d2eef1928b4721e8a210717f89ed342d784 (diff) | |
download | infrastructure-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.j2 | 8 |
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 %} |