mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
@@ -41,7 +41,7 @@ class ActionModule(ActionBase):
|
||||
if self._task._role is not None:
|
||||
src = self._loader.path_dwim_relative(self._task._role._role_path, 'files', src)
|
||||
else:
|
||||
src = self._loader.path_dwim(src)
|
||||
src = self._loader.path_dwim_relative(self._loader.get_basedir(), 'files', src)
|
||||
|
||||
# create the remote tmp dir if needed, and put the source file there
|
||||
if tmp is None or "-tmp-" not in tmp:
|
||||
|
||||
Reference in New Issue
Block a user