remove logrotate integration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
34444d114c
commit
87cc7da003
@ -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: >
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user