From 0dcd8b598c2372caf6ced4dd3f7be6348151b879 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Mon, 26 Mar 2018 10:04:06 -0500 Subject: [PATCH] Don't assume that self._task.action is copy, explicitly set. Addresses #37238 (#37777) --- lib/ansible/plugins/action/copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/copy.py b/lib/ansible/plugins/action/copy.py index 887901bbf6c..961546fa394 100644 --- a/lib/ansible/plugins/action/copy.py +++ b/lib/ansible/plugins/action/copy.py @@ -435,7 +435,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(task_vars=task_vars)) + result.update(self._execute_module(module_name='copy', task_vars=task_vars)) return result else: # find_needle returns a path that may not have a trailing slash on