rsyslog client tasks overwriting rsyslog server config

when rsyslog client role is invoked as part of monitoring agent
installation across all hosts its breaking the rsyslog server.
Added conditions not overwrite the rsyslog configs on rsyslog servers.

Change-Id: Iea783d443af96d9996fd25ea9355f2930d82fb20
This commit is contained in:
Ravi Kumar Boyapati 2017-02-25 15:28:05 -05:00
parent c902307da5
commit 931b04ed00
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@
dest: "/etc/rsyslog.d/50-default.conf"
owner: "root"
group: "root"
when: inventory_hostname not in groups['rsyslog_all']
tags:
- rsyslog_client-install
notify:
@ -67,6 +68,7 @@
dest: "/etc/rsyslog.conf"
owner: "root"
group: "root"
when: inventory_hostname not in groups['rsyslog_all']
tags:
- rsyslog_client-config
notify: