Log error when fail_on_rc disabled
Change-Id: I93e23e11dffcd2e0f9e33ba816b163de817166f4 Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
parent
111f3ca79f
commit
33123f6e88
|
@ -703,6 +703,8 @@ def run_ansible_playbook(playbook, inventory, workdir, playbook_dir=None,
|
|||
|
||||
if fail_on_rc:
|
||||
raise RuntimeError(err_msg)
|
||||
else:
|
||||
LOG.error(err_msg + '. Ignoring.')
|
||||
|
||||
LOG.info(
|
||||
'Ansible execution success. playbook: {}'.format(
|
||||
|
|
Loading…
Reference in New Issue