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