diff --git a/lib/ansible/executor/playbook_executor.py b/lib/ansible/executor/playbook_executor.py index 5adecdd7f21..4fad903a523 100644 --- a/lib/ansible/executor/playbook_executor.py +++ b/lib/ansible/executor/playbook_executor.py @@ -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