ansible-roles/roles/unmaintained/nas/templates/exports.j2
2021-12-01 19:13:34 +01:00

8 lines
288 B
Django/Jinja

{% for share in nas_shares %}
{% if share.protocols.nfs.enabled %}
{{ share.path | default(nas_root_dir + '/data/' + share.name) }} *(rw,{{ share.protocols.nfs.root_squash | ternary('','no_') }}root_squash)
{% else %}
# NFS not enabled for share {{ share.name }}
{% endif %}
{% endfor %}