1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-dirvish synced 2024-11-14 13:24:14 +01:00
ansible-collection-dirvish/roles/dirvish_server/templates/client_default.conf.j2

25 lines
800 B
Text
Raw Permalink Normal View History

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 %}