This commit is contained in:
parent
0c87d61d90
commit
09fb42d099
@ -20,16 +20,16 @@
|
||||
- name: Set umask to /etc/login.defs
|
||||
lineinfile:
|
||||
path: /etc/login.defs
|
||||
regexp: '^UMASK(\s+)'
|
||||
line: 'UMASK\1{{ users_global_umask }}'
|
||||
regexp: '^(?P<umask>UMASK\s+).+'
|
||||
line: \g<umask>{{ users_global_umask }}
|
||||
backrefs: yes
|
||||
state: present
|
||||
|
||||
- name: Enforcing minimum password lifetime
|
||||
lineinfile:
|
||||
path: /etc/login.defs
|
||||
regexp: '^PASS_MIN_DAYS(\s+)'
|
||||
line: 'PASS_MIN_DAYS\1{{ users_pass_min_day }}'
|
||||
regexp: '^(?P<passmin>PASS_MIN_DAYS\s+).+'
|
||||
line: \g<passmin>{{ users_pass_min_day }}
|
||||
backrefs: yes
|
||||
state: present
|
||||
become: True
|
||||
|
Loading…
Reference in New Issue
Block a user