Merge "Update rsyslog existence check"

This commit is contained in:
Zuul 2018-08-24 20:01:49 +00:00 committed by Gerrit Code Review
commit 472e394cc1
2 changed files with 6 additions and 6 deletions

View File

@ -254,9 +254,9 @@ outputs:
dest: /var/log/containers/swift
state: link
- name: Check if rsyslog exists
stat:
path: /etc/rsyslog.d
shell: systemctl list-unit-files --type=service | grep -q rsyslog
register: rsyslog_config
failed_when: rsyslog_config.rc == 2
- block:
- name: Forward logging to swift.log file
copy:
@ -270,7 +270,7 @@ outputs:
service: name=rsyslog state=restarted
when:
- logconfig|changed
when: rsyslog_config.stat.exists
when: rsyslog_config.rc == 0
upgrade_tasks:
- when: step|int == 0
tags: common

View File

@ -469,9 +469,9 @@ outputs:
/var/log/containers/swift and /var/log/containers/httpd/swift-*.
ignore_errors: true
- name: Check if rsyslog exists
stat:
path: /etc/rsyslog.d
shell: systemctl list-unit-files --type=service | grep -q rsyslog
register: rsyslog_config
failed_when: rsyslog_config.rc == 2
- block:
- name: Forward logging to swift.log file
copy:
@ -485,7 +485,7 @@ outputs:
service: name=rsyslog state=restarted
when:
- logconfig|changed
when: rsyslog_config.stat.exists
when: rsyslog_config.rc == 0
- name: Set fact for SwiftRawDisks
set_fact:
swift_raw_disks: {get_param: SwiftRawDisks}