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

This commit is contained in:
Robert Kaussow 2019-11-25 10:30:22 +01:00
parent 149c1117dd
commit f14108b4dc
3 changed files with 0 additions and 32 deletions

View File

@ -14,17 +14,6 @@ zigbee2mqtt_base_dir: /opt/zigbee2mqtt
zigbee2mqtt_log_dir: "{{ zigbee2mqtt_base_dir }}/log"
zigbee2mqtt_log_level: info
zigbee2mqtt_logrotate_enabled: True
zigbee2mqtt_logrotate_config:
- log: "{{ zigbee2mqtt_log_dir }}/log.txt"
options:
- weekly
- rotate 5
- maxsize 512K
- compress
- delaycompress
- "create 640 {{ zigbee2mqtt_user }} {{ zigbee2mqtt_group }}"
zigbee2mqtt_homeassistant_enabled: False
zigbee2mqtt_permit_join: True

View File

@ -66,15 +66,6 @@
mode: 0644
notify: __zigbee2mqtt_restart
- name: Copy logrotate config
template:
src: "etc/logrotate.d/config.j2"
dest: "/etc/logrotate.d/zigbee2mqtt"
loop: "{{ zigbee2mqtt_logrotate_config }}"
loop_control:
label: "{{ item.log }}"
when: zigbee2mqtt_logrotate_enabled | bool
- name: Set current version to custom fact
template:
src: etc/ansible/facts.d/zigbee2mqtt.fact.j2

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
}