2018-11-11 05:26:19 +01:00
|
|
|
---
|
|
|
|
# Password policy
|
|
|
|
|
|
|
|
- name: Check for password policy
|
|
|
|
shell: /sbin/e-smith/db configuration printprop passwordstrength Users
|
|
|
|
register: chk_passstr
|
|
|
|
changed_when: "'Users=none' not in chk_passstr.stdout"
|
|
|
|
ignore_errors: true
|
|
|
|
tags: password-policy
|
|
|
|
|
|
|
|
- name: Configuring password policy
|
2018-11-11 05:59:13 +01:00
|
|
|
shell: /sbin/e-smith/db configuration setprop passwordstrength PassExpires no Users none MaxPassAge 180 MinPassAge 0 PassWarning 7
|
2018-11-11 05:26:19 +01:00
|
|
|
when: chk_passstr|changed
|
|
|
|
tags: password-policy
|
|
|
|
|
|
|
|
- name: Activating password policy
|
|
|
|
shell: /sbin/e-smith/signal-event password-policy-update
|
|
|
|
when: chk_passstr|changed
|
|
|
|
tags: password-policy
|