ansible-role-bareos/templates/server-fileset.conf.j2

25 lines
490 B
Text
Raw Normal View History

2021-09-12 09:55:41 +00:00
# {{ ansible_managed }}
{% for fileset_name, fileset in bareos_server_filesets.items() %}
FileSet {
Name = "{{ fileset_name }}"
Include {
{% if 'options' in fileset %}
Options {
{% for option, value in fileset.options.items() %}
{{ option }} = {{ value }}
{% endfor %}
}
{% endif %}
File = "{{ fileset.path }}"
}
{% if 'excludes' in fileset %}
Exclude {
{% for exclude in fileset.excludes %}
File = "{{ exclude }}"
{% endfor %}
}
{% endif %}
}
{% endfor %}