Skip to content

Commit 68ac786

Browse files
authored
Merge pull request #839 from Normo/set-pw-warn-days
Set number of warning days before password expires for existing users
2 parents e746a25 + 78b9cbd commit 68ac786

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

roles/os_hardening/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ galaxy_info:
44
description: This Ansible role provides numerous security-related ssh configurations, providing all-round base protection.
55
company: Hardening Framework Team
66
license: Apache License 2.0
7-
min_ansible_version: "2.11"
7+
min_ansible_version: "2.16"
88
platforms:
99
- name: EL
1010
versions:

roles/os_hardening/tasks/user_accounts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
name: "{{ item }}"
3737
password_expire_min: "{{ os_auth_pw_min_age }}"
3838
password_expire_max: "{{ os_auth_pw_max_age }}"
39+
password_expire_warn: "{{ os_auth_pw_warn_age }}"
3940
loop: "{{ regular_users }}"
4041
when:
4142
- os_user_pw_ageing
@@ -66,6 +67,7 @@
6667
name: "{{ item }}"
6768
password_expire_min: "{{ os_auth_pw_min_age }}"
6869
password_expire_max: "{{ os_auth_pw_max_age }}"
70+
password_expire_warn: "{{ os_auth_pw_warn_age }}"
6971
loop: "{{ root_users }}"
7072
when:
7173
- os_rootuser_pw_ageing | bool

0 commit comments

Comments
 (0)