|
|
@ -113,7 +113,7 @@ class ActionModule(object):
|
|
|
|
xfered = self.runner._transfer_str(conn, tmp, 'source', resultant)
|
|
|
|
xfered = self.runner._transfer_str(conn, tmp, 'source', resultant)
|
|
|
|
|
|
|
|
|
|
|
|
# fix file permissions when the copy is done as a different user
|
|
|
|
# fix file permissions when the copy is done as a different user
|
|
|
|
if self.runner.sudo and self.runner.sudo_user != 'root':
|
|
|
|
if self.runner.sudo and self.runner.sudo_user != 'root' or self.runner.su and self.runner.su_user != 'root':
|
|
|
|
self.runner._remote_chmod(conn, 'a+r', xfered, tmp)
|
|
|
|
self.runner._remote_chmod(conn, 'a+r', xfered, tmp)
|
|
|
|
|
|
|
|
|
|
|
|
# run the copy module
|
|
|
|
# run the copy module
|
|
|
|