Commit b43019f3 by Michael DeHaan

In playbooks, a return code (rc) of non-zero should fail the playbook.

parent 6ab615c7
......@@ -214,7 +214,7 @@ class PlayBook(object):
self.dark[host] = 1
for (host, host_result) in contacted_hosts.iteritems():
self.processed[host] = 1
if 'failed' in host_result:
if 'failed' in host_result or (int(host_result.get('rc',0)) != 0):
self.callbacks.on_failed(host, host_result)
self.failures[host] = 1
elif 'skipped' in host_result:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment