From 7d62fb1f15501074ac16360510ac791fc47fd4ce Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 3 Sep 2024 11:22:46 -0400 Subject: [PATCH] dont make copyied files executable by default --- 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 3799d110fd2..93723c8447c 100644 --- a/lib/ansible/plugins/action/copy.py +++ b/lib/ansible/plugins/action/copy.py @@ -316,7 +316,7 @@ class ActionModule(ActionBase): # a problem before acting on this idea. (This idea would save a round-trip) # fix file permissions when the copy is done as a different user if remote_path: - self._fixup_perms2((self._connection._shell.tmpdir, remote_path)) + self._fixup_perms2((self._connection._shell.tmpdir, remote_path), execute=False) if raw: # Continue to next iteration if raw is defined.