Ensure we get rsyslog state, even in "--check" mode

Introduced with Ia615ac07d0c559deb65e307bb6254127e989794d, an issue
can be hit when deploy is launched with dry-run mode.

Change-Id: I5851dc7820fdcc4f5790980d94b81622ce3b0c8d
Related-Bug: #1823841
This commit is contained in:
Cédric Jeanneret 2019-04-09 08:06:12 +02:00
parent 2a20df28cf
commit 9a36edb320

View File

@ -322,7 +322,9 @@ outputs:
- name: Check if rsyslog exists
shell: systemctl is-active rsyslog
register: rsyslog_config
- when: rsyslog_config.rc == 0
- when:
- rsyslog_config is defined
- rsyslog_config.rc == 0
block:
- name: Forward logging to haproxy.log file
blockinfile: