mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #8263 from bennojoy/unarchive_fix
fix for unarchive 8257
This commit is contained in:
commit
f9f37a5070
1 changed files with 6 additions and 1 deletions
|
@ -78,7 +78,12 @@ class ActionModule(object):
|
|||
if copy:
|
||||
if self.runner.sudo and self.runner.sudo_user != 'root':
|
||||
self.runner._remote_chmod(conn, 'a+r', tmp_src, tmp)
|
||||
module_args = "%s src=%s original_basename=%s" % (module_args, pipes.quote(tmp_src), pipes.quote(os.path.basename(source)))
|
||||
# Build temporary module_args.
|
||||
new_module_args = dict(
|
||||
src=tmp_src,
|
||||
original_basename=os.path.basename(source),
|
||||
)
|
||||
module_args = utils.merge_module_args(module_args, new_module_args)
|
||||
else:
|
||||
module_args = "%s original_basename=%s" % (module_args, pipes.quote(os.path.basename(source)))
|
||||
return self.runner._execute_module(conn, tmp, 'unarchive', module_args, inject=inject, complex_args=complex_args)
|
||||
|
|
Loading…
Reference in a new issue