ansible-role-bind9/templates/etc/named/named.conf.logging.j2

32 lines
686 B
Plaintext
Raw Permalink Normal View History

2022-02-21 20:41:31 +00:00
#
# {{ ansible_managed }}
#
logging {
{% for category in bind9_logging.categories %}
category {{ category.name }} {
{% for channel in category.channels %}
{{ channel }};
{% endfor %}
};
{% endfor %}
{% for channel in bind9_logging.channels %}
channel {{ channel.name }} {
{%if channel.file.path is defined and channel.file.options is defined %}
file "{{ channel.file.path }}" {{ channel.file.options }};
{% endif %}
{%if channel.file.path is defined and channel.file.options is not defined %}
file "{{ channel.file.path }}";
{% endif %}
{%if channel.severity is defined %}
severity {{ channel.severity }};
{% endif %}
print-time yes;
};
{% endfor %}
};