mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 11:08:33 +01:00
feat: rsyslog basics
This commit is contained in:
29
roles/rsyslog-server/tasks/main.yaml
Normal file
29
roles/rsyslog-server/tasks/main.yaml
Normal 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
|
||||
Reference in New Issue
Block a user