mirror of
https://gitlab.com/s3lph/ansible-collection-dirvish
synced 2024-11-14 21:34:14 +01:00
18 lines
567 B
Django/Jinja
18 lines
567 B
Django/Jinja
{{ 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 %}
|
|
|
|
{% 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 %}
|