xoxys.logrotate/templates/etc/logrotate.d/config.j2
Robert Kaussow 2ce1d66d50
All checks were successful
continuous-integration/drone/push Build is passing
chore: fix jinja syntax
2021-05-25 23:32:55 +02:00

41 lines
906 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
{% for definition in item.definitions %}
{% for log in definition.logs %}
{{ log }}{{ " {" if loop.last else "" }}
{% endfor %}
{% for option in definition.options %}
{{ option }}
{% endfor %}
{% if definition.postrotate | default([]) %}
postrotate
{% for line in definition.postrotate %}
{{ line }}
{% endfor %}
endscript
{% endif %}
{% if definition.preremove | default([]) %}
preremove
{% for line in definition.preremove %}
{{ line }}
{% endfor %}
endscript
{% endif %}
{% if definition.lastaction | default([]) %}
lastaction
{% for line in definition.lastaction %}
{{ line }}
{% endfor %}
endscript
{% endif %}
{% if definition.firstaction | default([]) %}
firstaction
{% for line in definition.firstaction %}
{{ line }}
{% endfor %}
endscript
{% endif %}
}
{% endfor %}