ansible-role-bareos/templates/server-job.conf.j2
2021-09-12 11:55:41 +02:00

21 lines
581 B
Django/Jinja

# {{ ansible_managed }}
{% for client_name, client in bareos_server_clients.items() %}
{% for job_name, job in client.jobs.items() %}
Job {
Name = {{ job.name|default(client_name + '-' + job_name) }}
Type = {{ job.type|default('Backup') }}
Messages = Standard
Client = {{ client_name }}
FileSet = {{ job.fileset }}
Storage = {{ job.storage }}
Pool = {{ client_name }}
{% if 'maximum_bandwidth' in job %}
Maximum Bandwidth = {{ job.maximum_bandwidth }}
{% endif %}
{% if 'schedule' in job %}
Schedule = {{ job.schedule }}
{% endif %}
}
{% endfor %}
{% endfor %}