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:
schurzi authored and GitHub committed 2025-02-09 12:20:32 +01:00
commit 68ac7869f4
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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