18 lines
402 B
YAML
18 lines
402 B
YAML
|
---
|
||
|
- 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
|
||
|
...
|