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

This commit is contained in:
Robert Kaussow 2019-11-25 22:59:49 +01:00
parent 34444d114c
commit 87cc7da003
3 changed files with 0 additions and 32 deletions

View File

@ -10,17 +10,6 @@ jellyfin_conf_dir: "{{ jellyfin_base_dir }}/config"
jellyfin_data_dir: "{{ jellyfin_base_dir }}/data"
jellyfin_log_dir: "{{ jellyfin_base_dir }}/log"
jellyfin_logrotate_enabled: False
jellyfin_logrotate_config:
- log: "{{ jellyfin_log_dir }}/jellyfin.log"
options:
- weekly
- rotate 5
- maxsize 512K
- compress
- delaycompress
- "create 640 {{ jellyfin_user }} {{ jellyfin_group }}"
jellyfin_packages_extra: []
# @var jellyfin_log_level_console:description: >

View File

@ -58,14 +58,5 @@
dest: "/etc/systemd/system/jellyfin.service"
mode: 0644
notify: __jellyfin_restart
- name: Copy logrotate config
template:
src: "etc/logrotate.d/config.j2"
dest: "/etc/logrotate.d/jellyfin"
loop: "{{ jellyfin_logrotate_config }}"
loop_control:
label: "{{ item.log }}"
when: jellyfin_logrotate_enabled
become: True
become_user: root

View File

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