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