fix logrotate config
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-08-08 23:19:18 +02:00
parent a8e1d1fdd0
commit acf9c3c190
2 changed files with 6 additions and 4 deletions

View File

@ -52,10 +52,11 @@ matrix_logrotate_config:
- log: "{{ matrix_log_dir }}/homeserver.log"
options:
- weekly
- rotate 4
- maxsize 250K
- rotate 5
- maxsize 512K
- compress
- shred
- delaycompress
- "create 640 {{ matrix_user }} {{ matrix_group }}"
matrix_server_url: example.com
matrix_client_url: https://matrix.example.com

View File

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