mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Expand the source path in the action plugin when not using a remote source
Fixes #6209
This commit is contained in:
parent
c11e2100e0
commit
df9de6ea71
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ class ActionModule(object):
|
|||
return self.runner._execute_module(conn, tmp, 'assemble', module_args, inject=inject, complex_args=complex_args)
|
||||
elif '_original_file' in inject:
|
||||
src = utils.path_dwim_relative(inject['_original_file'], 'files', src, self.runner.basedir)
|
||||
else:
|
||||
# the source is local, so expand it here
|
||||
src = os.path.expanduser(src)
|
||||
|
||||
# Does all work assembling the file
|
||||
path = self._assemble_from_fragments(src, delimiter)
|
||||
|
|
Loading…
Reference in a new issue