mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 02:50:15 +08:00
Work around local4 syslog issue with mirrorlists for now.
This commit is contained in:
4
roles/base/files/rsyslog/rsyslog-log02-nolocal4
Normal file
4
roles/base/files/rsyslog/rsyslog-log02-nolocal4
Normal file
@@ -0,0 +1,4 @@
|
||||
#
|
||||
# Send everything on to central log02 logger machines
|
||||
#
|
||||
cron.*;kern.*;authpriv.*;local7.*;*.info;local6.none @@log02:514
|
||||
@@ -125,6 +125,20 @@
|
||||
- rsyslogd
|
||||
- config
|
||||
|
||||
- name: log everything to log02 except on mirrorlist, do not log local4 there.
|
||||
copy: src=rsyslog/rsyslog-log02 dest=/etc/rsyslog.d/rsyslog-log02.conf mode=644
|
||||
when: not inventory_hostname.startswith('mirrorlist')
|
||||
tags:
|
||||
- rsyslogd
|
||||
- config
|
||||
|
||||
- name: log everything to log02 except on mirrorlist, do not log local4 there.
|
||||
copy: src=rsyslog/rsyslog-log02-nolocal4 dest=/etc/rsyslog.d/rsyslog-log02.conf mode=644
|
||||
when: inventory_hostname.startswith('mirrorlist')
|
||||
tags:
|
||||
- rsyslogd
|
||||
- config
|
||||
|
||||
- name: /etc/postfix/main.cf
|
||||
copy: src={{ item }} dest=/etc/postfix/main.cf
|
||||
first_available_file:
|
||||
|
||||
Reference in New Issue
Block a user