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