Merge pull request #839 from Normo/set-pw-warn-days
Set number of warning days before password expires for existing users
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -4,7 +4,7 @@ galaxy_info:
|
||||
description: This Ansible role provides numerous security-related ssh configurations, providing all-round base protection.
|
||||
company: Hardening Framework Team
|
||||
license: Apache License 2.0
|
||||
min_ansible_version: "2.11"
|
||||
min_ansible_version: "2.16"
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
name: "{{ item }}"
|
||||
password_expire_min: "{{ os_auth_pw_min_age }}"
|
||||
password_expire_max: "{{ os_auth_pw_max_age }}"
|
||||
password_expire_warn: "{{ os_auth_pw_warn_age }}"
|
||||
loop: "{{ regular_users }}"
|
||||
when:
|
||||
- os_user_pw_ageing
|
||||
@@ -66,6 +67,7 @@
|
||||
name: "{{ item }}"
|
||||
password_expire_min: "{{ os_auth_pw_min_age }}"
|
||||
password_expire_max: "{{ os_auth_pw_max_age }}"
|
||||
password_expire_warn: "{{ os_auth_pw_warn_age }}"
|
||||
loop: "{{ root_users }}"
|
||||
when:
|
||||
- os_rootuser_pw_ageing | bool
|
||||
|
||||
Reference in new issue
Block a user