mg
e632af78f7
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>
16 lines
364 B
YAML
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'
|