mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
made sure they all look in files/vars/template dirs also when executed in play and not only from task
This commit is contained in:
parent
861fdfc5ba
commit
950622cebd
8 changed files with 13 additions and 9 deletions
|
@ -96,8 +96,7 @@ class ActionModule(ActionBase):
|
|||
elif self._task._role is not None:
|
||||
src = self._loader.path_dwim_relative(self._task._role._role_path, 'files', src)
|
||||
else:
|
||||
# the source is local, so expand it here
|
||||
src = self._loader.path_dwim(os.path.expanduser(src))
|
||||
src = self._loader.path_dwim_relative(self._loader.get_basedir(), 'files', src)
|
||||
|
||||
_re = None
|
||||
if regexp is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue