mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Ensure the tmp_path is sufficiently open.
This commit is contained in:
parent
8f3b2b281f
commit
5516ece859
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ class Runner(object):
|
|||
basetmp = os.path.join('/tmp', basefile)
|
||||
|
||||
cmd = 'mkdir -p %s' % basetmp
|
||||
if self.remote_user != 'root':
|
||||
if self.remote_user != 'root' or (self.sudo and self.sudo_user != 'root'):
|
||||
cmd += ' && chmod a+rx %s' % basetmp
|
||||
cmd += ' && echo %s' % basetmp
|
||||
|
||||
|
|
Loading…
Reference in a new issue