26 lines
497 B
YAML
26 lines
497 B
YAML
|
---
|
||
|
- name: install rsyslog config
|
||
|
template:
|
||
|
src: etc/rsyslog.conf.j2
|
||
|
dest: /etc/rsyslog.conf
|
||
|
mode: 0644
|
||
|
notify:
|
||
|
- restart rsyslog
|
||
|
|
||
|
- name: install logrotate configs
|
||
|
template:
|
||
|
src: "{{ item }}.j2"
|
||
|
dest: "/{{ item }}"
|
||
|
mode: 0644
|
||
|
loop:
|
||
|
- etc/logrotate.d/rsyslog
|
||
|
- etc/logrotate.d/backup-rsync
|
||
|
|
||
|
- name: set journalctl persistence
|
||
|
template:
|
||
|
src: etc/systemd/journald.conf.j2
|
||
|
dest: /etc/systemd/journald.conf
|
||
|
mode: 0644
|
||
|
|
||
|
- meta: flush_handlers
|