bodsch.htpasswd

Rôle Ansible : htpasswd

Un rôle Ansible pour gérer les informations d'identification avec htpasswd pour des serveurs web comme nginx.

Statut du flux de travail GitHub Problèmes GitHub Dernière version GitHub Note de qualité Ansible

Exigences et Dépendances

  • passlib>=1.6

Systèmes d'exploitation

Testé sur

  • ArchLinux
  • Basé sur Debian
    • Debian 10 / 11
    • Ubuntu 20.04

Configuration

Par défaut

htpasswd_credentials_path: /etc/nginx

htpasswd_credentials: []

htpasswd_list_users: true

Informations d'identification

voir aussi tests moleculaire

htpasswd_credentials:
  - path: "{{ htpasswd_credentials_path }}/.admin-passwdfile"
    mode: "u=rw,g=r,o-r"
    owner: "www-data"
    users:
    - username: admin
      password: ZRhgqhaAjdbuFXj2PLJTzYy5PrRsStNaeYWd9c3Ze3
    - username: administrator
      password: gp!tk<r+JcDyJhV5!tgzZVUWx233HLVZMJUy<YNVPZ
      state: absent
      # https://docs.ansible.com/ansible/latest/collections/community/general/htpasswd_module.html#parameter-crypt_scheme
      # choix disponibles : apr_md5_crypt, des_crypt, ldap_sha1, plaintext
      crypt_scheme: plaintext

  - path: "{{ htpasswd_credentials_path }}/.monitoring-passwdfile"
    users:
    - username: monitoring
      password: gp!tk<r+JcDyJhV5!tgzZVUWx233HLVZMJUy<YNVPZ
      crypt_scheme: des_crypt

Auteur et Licence

  • Bodo Schulz

Licence

Apache

LOGICIEL GRATUIT, OUI S'IL VOUS PLAÎT !

À propos du projet

ansible role for handling htpasswd credentials

Installer
ansible-galaxy install bodsch.htpasswd
Licence
Unknown
Téléchargements
7.8k
Propriétaire
ex-developer (c, c++, php), ex-system administrator / engineer, keep-it-simple, monitoring, automation, system architect