set umask in login.defs aswell
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e6096b608c
commit
91d6625115
@ -27,6 +27,14 @@
|
|||||||
- /etc/csh.cshrc
|
- /etc/csh.cshrc
|
||||||
- /etc/profile
|
- /etc/profile
|
||||||
|
|
||||||
|
- name: Set umask in /etc/login.defs
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/login.defs
|
||||||
|
regexp: '^(?P<umask>UMASK\s+).+'
|
||||||
|
line: \g<umask>{{ users_global_umask }}
|
||||||
|
backrefs: yes
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Enforce minimum password lifetime
|
- name: Enforce minimum password lifetime
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/login.defs
|
path: /etc/login.defs
|
||||||
|
Loading…
Reference in New Issue
Block a user