Make fact delegating configurable, defaulting to 1.x behavior

This commit is contained in:
James Cammarata 2015-12-08 14:00:17 -05:00
parent 7ffd578a9d
commit de690445bc
5 changed files with 6 additions and 2 deletions

View file

@ -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: