2018-12-02 22:12:30 +00:00
|
|
|
---
|
|
|
|
- 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
|
2019-02-15 02:09:11 +00:00
|
|
|
copy:
|
2018-12-02 22:46:31 +00:00
|
|
|
src: "log.config"
|
2018-12-02 22:12:30 +00:00
|
|
|
dest: "/opt/synapse/log.config"
|
|
|
|
owner: synapse
|
|
|
|
group: synapse
|
|
|
|
notify:
|
2019-02-15 02:08:08 +00:00
|
|
|
- "restart matrix-synapse"
|
2018-12-02 22:12:30 +00:00
|
|
|
|
|
|
|
|