aurore-logs/roles/rsyslog-collector/tasks/main.yml

18 lines
402 B
YAML
Raw Permalink Normal View History

2020-09-19 21:39:57 +02:00
---
- name: Install rsyslog-relp if needed
become: yes
apt:
name: rsyslog-relp
state: present
when: "rsyslog_inputs | selectattr('proto', 'eq', 'relp') | list"
- name: Deploy rsyslog input configuration file
become: yes
template:
src: 90-collect.conf.j2
dest: /etc/rsyslog.d/90-collect.conf
owner: root
group: root
mode: u=rw,g=r,o=r
notify: Restart rsyslog
...