homeserver/playbooks/on-off/repair_syslog.yml
mg e632af78f7 repair rsyslog ergänzt (#185)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#185
Co-authored-by: mg <mg@noreply.git.mgrote.net>
Co-committed-by: mg <mg@noreply.git.mgrote.net>
2021-08-15 12:01:03 +02:00

16 lines
364 B
YAML

---
- hosts: all:!proxmox
become: yes
serial: 5
tasks:
- name: write logrotate config rsyslog
become: yes
template:
src: rsyslog_template
dest: /etc/logrotate.d/rsyslog
- name: remove line
ansible.builtin.lineinfile:
path: /etc/rsyslog.conf
state: absent
regexp: '. @@rsyslog.grote.lan:514'