ansible-collection-famedly-.../tasks/logging.yml

32 lines
620 B
YAML
Raw Normal View History

---
- name: create logging folder
file:
2019-03-24 15:51:22 +00:00
name: "{{ matrix_synapse_log_dir }}"
state: directory
owner: synapse
group: synapse
- name: copy syslog config
2019-03-24 15:51:22 +00:00
template:
src: syslog-synapse.conf.j2
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
2019-03-24 15:51:22 +00:00
owner: root
- name: Deploy log config
2019-02-15 02:09:11 +00:00
copy:
src: "log.config"
2019-02-21 22:17:57 +00:00
dest: "{{ matrix_synapse_base_path }}/log.config"
owner: synapse
group: synapse
notify:
2019-02-15 02:08:08 +00:00
- "restart matrix-synapse"