Pass number of forks to TQM from CLI/config (#51669)

Fixes #51622
This commit is contained in:
Martin Krizek 2019-02-05 22:23:12 +01:00 committed by Matt Martz
parent eb6989ecbc
commit 9301c18428

View file

@ -56,8 +56,13 @@ class PlaybookExecutor:
context.CLIARGS.get('listtags') or context.CLIARGS.get('syntax'):
self._tqm = None
else:
self._tqm = TaskQueueManager(inventory=inventory, variable_manager=variable_manager,
loader=loader, passwords=self.passwords)
self._tqm = TaskQueueManager(
inventory=inventory,
variable_manager=variable_manager,
loader=loader,
passwords=self.passwords,
forks=context.CLIARGS.get('forks'),
)
# Note: We run this here to cache whether the default ansible ssh
# executable supports control persist. Sometime in the future we may