fix regex syntax
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-18 14:16:51 +02:00
parent 0c87d61d90
commit 09fb42d099
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

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