mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2025-01-10 08:38:42 +00:00
30 lines
584 B
YAML
30 lines
584 B
YAML
---
|
|
- name: create logging folder
|
|
file:
|
|
name: /var/log/synapse/
|
|
state: directory
|
|
owner: synapse
|
|
group: synapse
|
|
|
|
- name: copy syslog config
|
|
copy:
|
|
src: matrix_synapse.conf
|
|
dest: /etc/rsyslog.d/matrix_synapse.conf
|
|
owner: root
|
|
notify: restart rsyslog
|
|
|
|
- name: template logrotate config
|
|
template:
|
|
src: logrotate.j2
|
|
dest: /etc/logrotate.d/matrix_synapse
|
|
|
|
- name: Deploy log config
|
|
copy:
|
|
src: "log.config"
|
|
dest: "{{ matrix_synapse_base_path }}/log.config"
|
|
owner: synapse
|
|
group: synapse
|
|
notify:
|
|
- "restart matrix-synapse"
|
|
|
|
|