Browse Source

remove logrotate integration

master
Robert Kaussow 8 months ago
parent
commit
a8ac1d063a
3 changed files with 0 additions and 32 deletions
  1. +0
    -11
      defaults/main.yml
  2. +0
    -9
      tasks/install.yml
  3. +0
    -12
      templates/etc/logrotate.d/config.j2

+ 0
- 11
defaults/main.yml View File

@@ -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


+ 0
- 9
tasks/install.yml View File

@@ -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

+ 0
- 12
templates/etc/logrotate.d/config.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
}

Loading…
Cancel
Save