ansible-collection-bareos/roles/bareos_fd/templates/message.conf.j2
2024-03-03 05:37:23 +07:00

20 lines
587 B
Django/Jinja

{{ ansible_managed | comment }}
{% if item.enabled is defined and item.enabled or item.enabled is not defined %}
Messages {
Name = "{{ item.name }}"
Description = "{{ item.description }}"
{% if item.director is defined %}
Director = {{ item.director.server }} = {{ item.director.messages | join(', ') }}
{% endif %}
{% if item.append is defined %}
Append = "{{ item.append.file }}" = {{ item.append.messages | join(', ') }}
{% endif %}
{% if item.console is defined %}
Console = {{ item.console | join(', ') }}
{% endif %}
}
{% else %}
# This file is not enabled.
{% endif %}