File tree 1 file changed +27
-0
lines changed
files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 336
336
regexp : ' ^#?[\s]*(auth[\s]+required[\s]+pam_wheel\.so.*)$'
337
337
replace : ' \1'
338
338
339
+ #
340
+ #
341
+ # Lock out the user after an unsuccessful consecutive login attempts.
342
+ #
343
+ - lineinfile :
344
+ path : /etc/pam.d/common-auth
345
+ line : " {{ item }}"
346
+ with_items :
347
+ - ' auth required pam_tally2.so onerr=fail audit silent deny=5 unlock_time=900'
348
+
349
+ - lineinfile :
350
+ path : /etc/pam.d/sshd
351
+ line : " {{ item }}"
352
+ with_items :
353
+ - ' auth required pam_tally2.so deny=5 unlock_time=300'
354
+
355
+ #
356
+ #
357
+ # Configuration to remember user password history.
358
+ #
359
+ - lineinfile :
360
+ path : /etc/pam.d/common-password
361
+ line : " {{ item }}"
362
+ with_items :
363
+ - ' password required pam_pwhistory.so remember=5'
364
+
365
+ #
339
366
#
340
367
# Enable SNMP client tools to load MIBs by default.
341
368
#
You can’t perform that action at this time.
0 commit comments