Stop evaluating a host in a playbook when it encounters the first failure.

This commit is contained in:
Michael DeHaan 2012-02-27 22:28:01 -05:00
commit 1caafb7bd9
3 changed files with 14 additions and 2 deletions

View file

@ -66,7 +66,7 @@ class Runner(object):
'''
# save input values
self.host_list = self._parse_hosts(host_list)
self.host_list = self.parse_hosts(host_list)
self.module_path = module_path
self.module_name = module_name
self.forks = forks
@ -78,7 +78,8 @@ class Runner(object):
self.remote_pass = remote_pass
self._tmp_paths = {}
def _parse_hosts(self, host_list):
@classmethod
def parse_hosts(cls, host_list):
''' parse the host inventory file if not sent as an array '''
# if the host list is given as a string load the host list