fix logrotate config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-08-08 23:21:31 +02:00
parent 98e254f0f9
commit 213519da65
2 changed files with 7 additions and 4 deletions

View File

@ -27,10 +27,11 @@ jellyfin_logrotate_config:
- log: "{{ jellyfin_log_dir }}/jellyfin.log" - log: "{{ jellyfin_log_dir }}/jellyfin.log"
options: options:
- weekly - weekly
- rotate 4 - rotate 5
- maxsize 250K - maxsize 512K
- compress - compress
- shred - delaycompress
- "create 640 {{ jellyfin_user }} {{ jellyfin_group }}"
jellyfin_packages_extra: [] jellyfin_packages_extra: []

View File

@ -1,9 +1,11 @@
#jinja2: lstrip_blocks: True #jinja2: lstrip_blocks: True
# {{ ansible_managed }} {{ ansible_managed | comment }}
{{ item.log }} { {{ item.log }} {
{% for option in item.options %} {% for option in item.options %}
{{ option }} {{ option }}
{% endfor %} {% endfor %}
copytruncate
sharedscripts
postrotate postrotate
/usr/bin/pkill -HUP rsyslogd /usr/bin/pkill -HUP rsyslogd
endscript endscript