mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 09:01:38 +01:00
fix: various rsyslog deploy problems
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
apt:
|
||||
pkg:
|
||||
- rsyslog
|
||||
- rsyslog-pgsql
|
||||
state: present
|
||||
|
||||
- name: Install rsyslog psql on master
|
||||
@@ -12,6 +11,13 @@
|
||||
state: present
|
||||
when: monitoring_master
|
||||
|
||||
- name: Ensure no rsyslog psql on non-master
|
||||
apt:
|
||||
pkg:
|
||||
- rsyslog-pgsql
|
||||
state: absent
|
||||
when: not monitoring_master
|
||||
|
||||
- name: Rsyslog Main config
|
||||
template:
|
||||
src: rsyslog.conf.j2
|
||||
|
||||
@@ -87,7 +87,7 @@ mail.err /var/log/mail.err
|
||||
cron,daemon.none;\
|
||||
mail.none -/var/log/messages
|
||||
|
||||
{% if not monitoring_master %}
|
||||
{% if monitoring_master %}
|
||||
$CreateDirs on
|
||||
$template RemoteLogs,"/var/log/rsyslog/%HOSTNAME%/%PROGRAMNAME%.log"
|
||||
*.* ?RemoteLogs
|
||||
|
||||
Reference in New Issue
Block a user