mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-15 04:39:12 -07:00
parent
63a1416754
commit
ec56b29ba4
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ class TaskExecutor:
|
||||||
del variables[i]
|
del variables[i]
|
||||||
# now replace the interpreter values with those that may have come
|
# now replace the interpreter values with those that may have come
|
||||||
# from the delegated-to host
|
# from the delegated-to host
|
||||||
delegated_vars = variables.get('ansible_delegated_vars', dict()).get(self._host.name, dict())
|
delegated_vars = variables.get('ansible_delegated_vars', dict()).get(self._task.delegate_to, dict())
|
||||||
if isinstance(delegated_vars, dict):
|
if isinstance(delegated_vars, dict):
|
||||||
for i in delegated_vars:
|
for i in delegated_vars:
|
||||||
if i.startswith("ansible_") and i.endswith("_interpreter"):
|
if i.startswith("ansible_") and i.endswith("_interpreter"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue