From 0b4a2594445652fba27041c8d252e81f921b7086 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 8 Feb 2016 10:00:26 -0500 Subject: [PATCH] Also chmod the args file path when using become for old-style modules Fixes #14348 --- lib/ansible/plugins/action/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 87321901425..a93e8b41c3d 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -429,6 +429,8 @@ class ActionBase(with_metaclass(ABCMeta, object)): if tmp and "tmp" in tmp and self._play_context.become and self._play_context.become_user != 'root': # deal with possible umask issues once sudo'ed to other user self._remote_chmod('a+r', remote_module_path) + if args_file_path is not None: + self._remote_chmod('a+r', args_file_path) cmd = "" in_data = None