Ansible role to manage password complexity, history and expiration
It will install the required package and configure policy files to ensure password complexity, history and expiration are met on Nix systems for local users
None.
Available variables are listed below, along with default values (see defaults/main.yml
):
minlen: 8 lcredit: -1 ucredit: -1 dcredit: -1 ocredit: -1
remember: 12
PASS_MAX_DAYS: 60 PASS_MIN_DAYS: 0 PASS_MIN_LEN: 8 PASS_WARN_AGE: 7
None.
- hosts: servers
vars_files:
- vars/main.yml
roles:
- { role: riponbanik.password_policy }
Inside vars/main.yml
:
remember: 24
MIT / BSD
This role was created in 2018 by Ripon Banik