mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 09:24:01 -07:00
Stop evaluating a host in a playbook when it encounters the first failure.
This commit is contained in:
parent
ada866be46
commit
1caafb7bd9
3 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue