/
/
/
1# /etc/exports: the access control list for filesystems which may be exported
2# to NFS clients. See exports(5).
3#
4# NFS exports configuration generated by Ansible NAS role
5# Generated on: {{ ansible_date_time.iso8601 }}
6
7{% if nas_nfs_exports | length > 0 %}
8# Configured exports:
9{% for export in nas_nfs_exports %}
10{{ export.path }} {{ export.clients }}({{ export.options }})
11{% endfor %}
12{% else %}
13# No NFS exports configured yet.
14# Add exports to the nas_nfs_exports variable in your host_vars or group_vars.
15#
16# Example configuration in host_vars/storage.yml:
17# nas_nfs_exports:
18# - path: "/mnt/rstorage"
19# clients: "192.168.34.0/24"
20# options: "rw,sync,no_subtree_check"
21#
22# - path: "/mnt/rstorage/readonly"
23# clients: "192.168.34.0/24"
24# options: "ro,sync,no_subtree_check"
25{% endif %}
26
27{% if nas_enable_runner_exports | default(false) and nas_runner_exports | length > 0 %}
28# Runner services exports:
29{% for export in nas_runner_exports %}
30# {{ export.description | default(export.name) }}
31{{ export.path }} {{ export.clients }}({{ export.options }})
32{% endfor %}
33{% endif %}
34
35# Manual exports can be added below this line:
36# /path/to/export client1(options) client2(options)