mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 20:50:23 -07:00
Make fact delegating configurable, defaulting to 1.x behavior
This commit is contained in:
parent
7ffd578a9d
commit
de690445bc
5 changed files with 6 additions and 2 deletions
|
@ -289,7 +289,7 @@ class StrategyBase:
|
|||
|
||||
# find the host we're actually refering too here, which may
|
||||
# be a host that is not really in inventory at all
|
||||
if task.delegate_to is not None:
|
||||
if task.delegate_to is not None and task.delegate_facts:
|
||||
task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=task)
|
||||
self.add_tqm_variables(task_vars, play=iterator._play)
|
||||
if item is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue