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
149c1117dd
commit
f14108b4dc
@ -14,17 +14,6 @@ zigbee2mqtt_base_dir: /opt/zigbee2mqtt
|
|||||||
zigbee2mqtt_log_dir: "{{ zigbee2mqtt_base_dir }}/log"
|
zigbee2mqtt_log_dir: "{{ zigbee2mqtt_base_dir }}/log"
|
||||||
zigbee2mqtt_log_level: info
|
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_homeassistant_enabled: False
|
||||||
zigbee2mqtt_permit_join: True
|
zigbee2mqtt_permit_join: True
|
||||||
|
|
||||||
|
@ -66,15 +66,6 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
notify: __zigbee2mqtt_restart
|
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
|
- name: Set current version to custom fact
|
||||||
template:
|
template:
|
||||||
src: etc/ansible/facts.d/zigbee2mqtt.fact.j2
|
src: etc/ansible/facts.d/zigbee2mqtt.fact.j2
|
||||||
|
@ -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