mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
template: change to pass along the correct template path (#35027)
* template: change to pass along the correct template path * standardise tmp path behaviour * removed if condition as it should not be needed
This commit is contained in:
parent
676ce74cbf
commit
389f4ef1fb
12 changed files with 41 additions and 25 deletions
|
@ -38,6 +38,8 @@ class ActionModule(ActionBase):
|
|||
|
||||
result = super(ActionModule, self).run(tmp, task_vars)
|
||||
|
||||
tmp = self._connection._shell.tempdir
|
||||
|
||||
module = self._task.args.get('use', 'auto').lower()
|
||||
|
||||
if module == 'auto':
|
||||
|
@ -84,6 +86,6 @@ class ActionModule(ActionBase):
|
|||
result.update(e.result)
|
||||
finally:
|
||||
if not self._task.async_val:
|
||||
self._remove_tmp_path(self._connection._shell.tempdir)
|
||||
self._remove_tmp_path(tmp)
|
||||
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue