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:
parent
2a20df28cf
commit
9a36edb320
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user