mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Implement play_hosts magic variable (and ansible_current_hosts)
Fixes #8073
This commit is contained in:
parent
cb5f630f33
commit
7490044bbe
3 changed files with 22 additions and 0 deletions
|
@ -188,6 +188,7 @@ class StrategyModule(StrategyBase):
|
|||
else:
|
||||
debug("getting variables")
|
||||
task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=task)
|
||||
task_vars = self.add_tqm_variables(task_vars, play=iterator._play)
|
||||
templar = Templar(loader=self._loader, variables=task_vars)
|
||||
debug("done getting variables")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue