mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3650 from bcoca/forking_optimizations
forking least possible
This commit is contained in:
commit
4d1f447908
1 changed files with 3 additions and 0 deletions
|
@ -892,6 +892,9 @@ class Runner(object):
|
|||
# host.
|
||||
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):
|
||||
|
||||
# Expose the current hostgroup to the bypassing plugins
|
||||
|
|
Loading…
Reference in a new issue