{"id":18367823,"url":"https://github.com/gantsign/ansible_role_pwquality","last_synced_at":"2026-01-26T07:30:55.100Z","repository":{"id":39652068,"uuid":"152050546","full_name":"gantsign/ansible_role_pwquality","owner":"gantsign","description":"Ansible role for installing and configuring pwquality","archived":false,"fork":false,"pushed_at":"2022-08-03T22:42:18.000Z","size":71,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T21:45:21.783Z","etag":null,"topics":["ansible","ansible-role"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/gantsign/pwquality","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gantsign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-08T09:09:39.000Z","updated_at":"2022-06-18T02:00:02.000Z","dependencies_parsed_at":"2022-08-09T15:08:49.460Z","dependency_job_id":null,"html_url":"https://github.com/gantsign/ansible_role_pwquality","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gantsign/ansible_role_pwquality","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_pwquality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_pwquality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_pwquality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_pwquality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gantsign","download_url":"https://codeload.github.com/gantsign/ansible_role_pwquality/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gantsign%2Fansible_role_pwquality/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28769851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T06:37:25.426Z","status":"ssl_error","status_checked_at":"2026-01-26T06:37:23.039Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role"],"created_at":"2024-11-05T23:23:36.704Z","updated_at":"2026-01-26T07:30:55.066Z","avatar_url":"https://github.com/gantsign.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role: pwquality\n=======================\n\n[![Tests](https://github.com/gantsign/ansible_role_pwquality/workflows/Tests/badge.svg)](https://github.com/gantsign/ansible_role_pwquality/actions?query=workflow%3ATests)\n[![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-gantsign.pwquality-blue.svg)](https://galaxy.ansible.com/gantsign/pwquality)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/gantsign/ansible_role_pwquality/master/LICENSE)\n\nRole to install and configure\n[pwquality](https://github.com/libpwquality/libpwquality) for enforcing password\nstrength. As well as configuring pwquality itself it adds the pwquality module\nto the PAM config.\n\nRequirements\n------------\n\n* Ansible \u003e= 2.9\n\n* Linux Distribution\n\n    * Debian Family\n\n        * Ubuntu\n\n            * Bionic (18.04)\n            * Focal (20.04)\n\nRole Variables\n--------------\n\nThe following variables will change the behavior of this role (default values\nare shown below):\n\n```yaml\n# Number of characters in the new password that must not be present in the\n# old password.\npwquality_difok: 1\n\n# Minimum acceptable size for the new password (plus one if\n# credits are not disabled which is the default). (See pam_cracklib manual.)\n# Cannot be set to lower value than 6.\npwquality_minlen: 8\n\n# The maximum credit for having digits in the new password. If less than 0\n# it is the minimum number of digits in the new password.\npwquality_dcredit: 0\n\n# The maximum credit for having uppercase characters in the new password.\n# If less than 0 it is the minimum number of uppercase characters in the new\n# password.\npwquality_ucredit: 0\n\n# The maximum credit for having lowercase characters in the new password.\n# If less than 0 it is the minimum number of lowercase characters in the new\n# password.\npwquality_lcredit: 0\n\n# The maximum credit for having other characters in the new password.\n# If less than 0 it is the minimum number of other characters in the new\n# password.\npwquality_ocredit: 0\n\n# The minimum number of required classes of characters for the new\n# password (digits, uppercase, lowercase, others).\npwquality_minclass: 0\n\n# The maximum number of allowed consecutive same characters in the new password.\n# The check is disabled if the value is 0.\npwquality_maxrepeat: 0\n\n# The maximum number of allowed consecutive characters of the same class in the\n# new password.\n# The check is disabled if the value is 0.\npwquality_maxclassrepeat: 0\n\n# Whether to check for the words from the passwd entry GECOS string of the user.\n# The check is enabled if the value is not 0.\npwquality_gecoscheck: 0\n\n# Path to the cracklib dictionaries. Default is to use the cracklib default.\npwquality_dictpath:\n```\n\nExample Playbook\n----------------\n\n```yaml\n- hosts: servers\n  roles:\n    - role: gantsign.pwquality\n      pwquality_minlen: 16\n      pwquality_maxrepeat: 3\n```\n\nMore Roles From GantSign\n------------------------\n\nYou can find more roles from GantSign on\n[Ansible Galaxy](https://galaxy.ansible.com/gantsign).\n\nDevelopment \u0026 Testing\n---------------------\n\nThis project uses [Molecule](http://molecule.readthedocs.io/) to aid in the\ndevelopment and testing; the role is unit tested using\n[Testinfra](http://testinfra.readthedocs.io/) and\n[pytest](http://docs.pytest.org/).\n\nTo develop or test you'll need to have installed the following:\n\n* Linux (e.g. [Ubuntu](http://www.ubuntu.com/))\n* [Docker](https://www.docker.com/)\n* [Python](https://www.python.org/) (including python-pip)\n* [Ansible](https://www.ansible.com/)\n* [Molecule](http://molecule.readthedocs.io/)\n\nBecause the above can be tricky to install, this project includes\n[Molecule Wrapper](https://github.com/gantsign/molecule-wrapper). Molecule\nWrapper is a shell script that installs Molecule and it's dependencies (apart\nfrom Linux) and then executes Molecule with the command you pass it.\n\nTo test this role using Molecule Wrapper run the following command from the\nproject root:\n\n```bash\n./moleculew test\n```\n\nNote: some of the dependencies need `sudo` permission to install.\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nJohn Freeman\n\nGantSign Ltd.\nCompany No. 06109112 (registered in England)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgantsign%2Fansible_role_pwquality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgantsign%2Fansible_role_pwquality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgantsign%2Fansible_role_pwquality/lists"}