Commit 7115d379 by Toshio Kuratomi

Merge pull request #10518 from pilou-/file_mode_v2

Port #10258 to v2
parents bda83fdf 59421448
......@@ -1376,7 +1376,7 @@ class AnsibleModule(object):
# based on the current value of umask
umask = os.umask(0)
os.umask(umask)
os.chmod(dest, 0666 ^ umask)
os.chmod(dest, 0666 & ~umask)
if switched_user:
os.chown(dest, os.getuid(), os.getgid())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment