mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +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:
@@ -71,7 +71,7 @@ class ActionModule(ActionBase):
|
||||
if self._task._role is not None:
|
||||
source = self._loader.path_dwim_relative(self._task._role._role_path, 'templates', source)
|
||||
else:
|
||||
source = self._loader.path_dwim(source)
|
||||
source = self._loader.path_dwim_relative(self._loader.get_basedir(), 'templates', source)
|
||||
|
||||
# Expand any user home dir specification
|
||||
dest = self._remote_expand_user(dest, tmp)
|
||||
|
||||
Reference in New Issue
Block a user