mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Also chmod the args file path when using become for old-style modules
Fixes #14348
This commit is contained in:
parent
45755bc0e5
commit
1ea21f1f8c
1 changed files with 2 additions and 0 deletions
|
@ -435,6 +435,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
|
||||
|
|
Loading…
Reference in a new issue