Temporarily setting umask

139 views
Skip to first unread message

Steven Ringo

unread,
Sep 9, 2014, 6:09:31 PM9/9/14
to ansible...@googlegroups.com

Hi,

We are running a system where the default umask is 0077.

When installing a system-wide rubygem (as root), for example, the installed files and executables are installed with rights for the root user only.

I would like to avoid trying to manually find and set the mode on all the files installed, as there are many (200+) and in quite a few locations.

I could manually change the .profile’s umask to 0022 and then manually revert when done, but this seems like a hack.

Is there any way to run the umask command before an ansible module?

Many thanks,

Steve

Johnathan Gilday

unread,
Dec 17, 2015, 9:25:50 AM12/17/15
to Ansible Project
Steven, I also have this requirement. Were you able to come up with a solution?
Reply all
Reply to author
Forward
0 new messages