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
ecec050318
commit
a8ac1d063a
@ -36,17 +36,6 @@ matrix_log_synapse_sql_level: INFO
|
||||
matrix_log_ldap_level: INFO
|
||||
matrix_log_ldap_auth_level: INFO
|
||||
|
||||
matrix_logrotate_enabled: False
|
||||
matrix_logrotate_config:
|
||||
- log: "{{ matrix_log_dir }}/homeserver.log"
|
||||
options:
|
||||
- weekly
|
||||
- rotate 5
|
||||
- maxsize 512K
|
||||
- compress
|
||||
- delaycompress
|
||||
- "create 640 {{ matrix_user }} {{ matrix_group }}"
|
||||
|
||||
matrix_restart_policy: "on-failure"
|
||||
|
||||
matrix_server_url: example.com
|
||||
|
@ -65,14 +65,5 @@
|
||||
src: "etc/systemd/system/matrix.service.j2"
|
||||
dest: "/etc/systemd/system/matrix.service"
|
||||
notify: __matrix_restart
|
||||
|
||||
- name: Copy logrotate config
|
||||
template:
|
||||
src: "etc/logrotate.d/config.j2"
|
||||
dest: "/etc/logrotate.d/matrix"
|
||||
loop: "{{ matrix_logrotate_config }}"
|
||||
loop_control:
|
||||
label: "{{ item.log }}"
|
||||
when: matrix_logrotate_enabled | bool
|
||||
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