Skip to content

riponbanik/ansible-role-password-policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role to manage password complexity, history and expiration

Build Status

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

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

password complexity

minlen: 8 lcredit: -1 ucredit: -1 dcredit: -1 ocredit: -1

password history

remember: 12

password expiration

PASS_MAX_DAYS: 60 PASS_MIN_DAYS: 0 PASS_MIN_LEN: 8 PASS_WARN_AGE: 7

Dependencies

None.

Example Playbook

- hosts: servers
  vars_files:
    - vars/main.yml
  roles:
    - { role: riponbanik.password_policy }

Inside vars/main.yml:

remember: 24

License

MIT / BSD

Author Information

This role was created in 2018 by Ripon Banik

About

Ansible role to manage password complexity, history and expiration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages