2020-10-31 04:34:41 +01:00
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
|
|
|
{% if item == inventory_hostname %}
|
|
|
|
client: localhost
|
|
|
|
{% else %}
|
|
|
|
client: {{ hostvars[item].dirvish_server_client_hostname | default(item) }}
|
|
|
|
{% endif %}
|
|
|
|
tree: /
|
|
|
|
{% if item != inventory_hostname %}
|
|
|
|
rsh: {{ hostvars[item].dirvish_server_client_rsh | default(dirvish_server_rsh) }}
|
|
|
|
{% endif %}
|
2021-08-18 01:27:42 +02:00
|
|
|
{% if hostvars[item].dirvish_server_expire_rules is defined and hostvars[item].dirvish_server_expire_rules | length > 0 %}
|
|
|
|
expire-rule:
|
|
|
|
{% for rule in hostvars[item].dirvish_server_expire_rules %}
|
|
|
|
{{ rule }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif%}
|
2020-10-31 04:34:41 +01:00
|
|
|
|
|
|
|
{% if hostvars[item].dirvish_server_client_exclude is defined and hostvars[item].dirvish_server_client_exclude | length > 0 %}
|
|
|
|
exclude:
|
|
|
|
{% for exclude in hostvars[item].dirvish_server_client_exclude %}
|
|
|
|
{{ exclude }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|