mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 15:21:25 -07:00
Moving over all lookup plugins to v2
This commit is contained in:
parent
45f8e6f3b0
commit
1544dde932
54 changed files with 1650 additions and 37 deletions
|
@ -33,7 +33,7 @@ class ActionModule(ActionBase):
|
|||
result = dict(msg=self._task.args['msg'])
|
||||
# FIXME: move the LOOKUP_REGEX somewhere else
|
||||
elif 'var' in self._task.args: # and not utils.LOOKUP_REGEX.search(self._task.args['var']):
|
||||
templar = Templar(variables=task_vars)
|
||||
templar = Templar(loader=self._loader, variables=task_vars)
|
||||
results = templar.template(self._task.args['var'], convert_bare=True)
|
||||
result = dict()
|
||||
result[self._task.args['var']] = results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue