set umask in login.defs aswell
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-18 22:05:16 +02:00
parent e6096b608c
commit 91d6625115
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -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