mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
now if you set fork to 0 or a number higher than the number of hosts, it
will be readjusted to the number of hosts runner is going to deal with. Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
This commit is contained in:
parent
d1effecb2e
commit
576962d335
1 changed files with 3 additions and 0 deletions
|
@ -886,6 +886,9 @@ class Runner(object):
|
||||||
# host.
|
# host.
|
||||||
p = utils.plugins.action_loader.get(self.module_name, self)
|
p = utils.plugins.action_loader.get(self.module_name, self)
|
||||||
|
|
||||||
|
if self.forks == 0 or self.forks > len(hosts):
|
||||||
|
self.forks = len(hosts)
|
||||||
|
|
||||||
if p and getattr(p, 'BYPASS_HOST_LOOP', None):
|
if p and getattr(p, 'BYPASS_HOST_LOOP', None):
|
||||||
|
|
||||||
# Expose the current hostgroup to the bypassing plugins
|
# Expose the current hostgroup to the bypassing plugins
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue