aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/nfs/templates/exports.j2
blob: 301bb45f43fc98ce9f11460d8e1cb3b4950d1bf2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                                 
{% set _opts = 'rw,sync,insecure,no_subtree_check' %}
{% if nfs_opts %}
  {% set _opts %}{{ _opts }},{{ nfs_opts }}{% endset %}
{% endif %}
{% if nfs_all_squash %}
  {% set _anonuid = nfs_anonuid if nfs_anonuid is defined else ansible_facts['user_uid'] %}
  {% set _anongid = nfs_anongid if nfs_anongid is defined else ansible_facts['user_gid'] %}
  {% set _opts %}{{ _opts }},all_squash,anonuid={{ _anonuid }},anongid={{ _anongid }}{% endset %}
{% endif %}

{{ nfs_dir }}	*({{ _opts }})