mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge branch 'devel' of https://github.com/kavink/ansible into kavink-devel
This commit is contained in:
commit
4025695c00
1 changed files with 2 additions and 1 deletions
|
@ -573,8 +573,9 @@ class PlayBook(object):
|
|||
|
||||
host_list = self._list_available_hosts(play.hosts)
|
||||
|
||||
# Set max_fail_pct to 0, So if any hosts fails, bail out
|
||||
if task.any_errors_fatal and len(host_list) < hosts_count:
|
||||
host_list = None
|
||||
play.max_fail_pct = 0
|
||||
|
||||
# If threshold for max nodes failed is exceeded , bail out.
|
||||
if (hosts_count - len(host_list)) > int((play.max_fail_pct)/100.0 * hosts_count):
|
||||
|
|
Loading…
Reference in a new issue