Skip to content

Commit

Permalink
Address review comment from Seb, Use a seperate file for profile.d
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Shukla committed Jul 19, 2023
1 parent d509bef commit 5b7e410
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
3 changes: 3 additions & 0 deletions files/common/etc/profile.d/set-umask-for-all-users.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

umask 022
Original file line number Diff line number Diff line change
Expand Up @@ -682,20 +682,11 @@
- variant == "internal-buildserver"
- not ansible_is_chroot

#
# CIS: Set default umask (DLPX-86533)
# We need to set default umask as 022 in the /etc/profile and /etc/bash.bashrc files,
# We need to set default umask as 022 in the /etc/bash.bashrc file,
# so that the same can be applied for all the users on the engine.
- blockinfile:
path: /etc/profile.d/set-umask-for-all-users.sh
create: yes
block: |
#!/bin/sh
umask 022
- file:
path: /etc/profile.d/set-umask-for-all-users.sh
mode: '0755'

#
- blockinfile:
path: /etc/bash.bashrc
block: |
Expand Down

0 comments on commit 5b7e410

Please sign in to comment.