deal with remote_src and tmp dirs properly

fixes #20128
This commit is contained in:
Brian Coca 2017-01-11 20:32:44 -05:00 committed by Brian Coca
parent 02b548dba2
commit 8c6b5621f8
2 changed files with 6 additions and 7 deletions

View file

@ -87,7 +87,7 @@ class ActionModule(ActionBase):
# if we have first_available_file in our vars
# look up the files and use the first one we find as src
elif remote_src:
result.update(self._execute_module(module_name='copy', module_args=self._task.args, task_vars=task_vars, delete_remote_tmp=False))
result.update(self._execute_module(module_name='copy', module_args=self._task.args, task_vars=task_vars))
return result
else: # find in expected paths
try: