ansible-logrotate-plusplus/templates/etc/logrotate.d/application.j2
Serge van Ginderachter b0e5245e4e
Import github.com/arillso/ansible.logrotate
at version 1.5.2 (commit 038649f
2020-09-09 16:17:43 +02:00

38 lines
818 B
Django/Jinja

{{ ansible_managed | comment }}
{% for definition in item.definitions %}
{{ definition.logs | join(" ") }} {
{% 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 %}