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

22 lines
581 B
Text
Raw Normal View History

2021-09-12 09:55:41 +00:00
# {{ 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 %}