diff options
author | Vincent Roy <vincentroy8@gmail.com> | 2016-04-12 22:36:08 -0300 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-05-18 08:17:53 -0400 |
commit | 9602e439525e5e14b1e062e18bbdee3b47af8248 (patch) | |
tree | 6ca9f839353c1cc0f78a6a0d2f0e8290858c385c | |
parent | c901c9144c9338b0bfea37a57e646e56fe602005 (diff) | |
download | ansible-9602e439525e5e14b1e062e18bbdee3b47af8248.tar.gz |
Don't stop executing plays after failure.
https://github.com/ansible/ansible/pull/13750/files
-rw-r--r-- | lib/ansible/executor/playbook_executor.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ansible/executor/playbook_executor.py b/lib/ansible/executor/playbook_executor.py index 501e90ee2c..29ac3e9b7c 100644 --- a/lib/ansible/executor/playbook_executor.py +++ b/lib/ansible/executor/playbook_executor.py @@ -154,10 +154,10 @@ class PlaybookExecutor: # save the unreachable hosts from this batch self._unreachable_hosts.update(self._tqm._unreachable_hosts) - # if the last result wasn't zero or 3 (some hosts were unreachable), - # break out of the serial batch loop - if result not in (0, 3): - break + # if the last result wasn't zero or 3 (some hosts were unreachable), + # break out of the serial batch loop + if result not in (0, 3): + break i = i + 1 # per play |