1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-dirvish synced 2024-11-15 05:44:15 +01:00
ansible-collection-dirvish/roles/dirvish_server/templates/master.conf.j2

25 lines
695 B
Text
Raw Normal View History

2020-10-31 04:34:41 +01:00
{{ ansible_managed | comment }}
bank:
{% set banks = [] -%}
{%- for host in hostvars.keys() -%}
{%- if dirvish_server_clients_group in hostvars[host].group_names -%}
{%- set _ = banks.append(hostvars[host].dirvish_server_bank) -%}
{%- endif -%}
{%- endfor -%}
{% for bank in (banks | unique) %}
{{ bank }}
{% endfor %}
branch-default: {{ dirvish_server_branch_default }}
image-default: {{ dirvish_server_image_name }}
log: {{ dirvish_server_log_compression }}
index: {{ dirvish_server_log_compression }}
expire-default: {{ dirvish_server_expire_default }}
{% if dirvish_server_exclude|length > 0 %}
exclude:
{% for exclude in dirvish_server_exclude %}
{{ exclude }}
{% endfor %}
{% endif %}