feat: rsyslog basics

This commit is contained in:
2023-01-03 19:55:54 +01:00
parent fe9f71a38e
commit 3e97a05021
5 changed files with 240 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
- name: Install Dependecies
apt:
pkg:
- rsyslog
- rsyslog-psql
state: present
with_items:
- name: Rsyslog Main config
template:
src: rsyslog.conf.j2
dest: /etc/rsyslog.conf
mode: 0755
notify:
- restart rsyslog
- name: Rsyslog Database config
template:
src: psql.conf.j2
dest: /etc/rsyslog.d/psql.conf
mode: 0755
notify:
- restart rsyslog
- name: Enable and start nsca-ng
systemd:
name: rsyslog.service
state: started
enabled: yes