bodsch.htpasswd

Ansible Rolle: htpasswd

Eine Ansible Rolle zur Verwaltung von Anmeldeinformationen über htpasswd für Webserver wie nginx.

GitHub Workflow Status GitHub Issues GitHub Release (neueste nach Datum) Ansible Qualitätsbewertung

Anforderungen & Abhängigkeiten

  • passlib>=1.6

Betriebssysteme

Getestet auf

  • ArchLinux
  • Debian-basiert
    • Debian 10 / 11
    • Ubuntu 20.04

Konfiguration

Standard

htpasswd_credentials_path: /etc/nginx

htpasswd_credentials: []

htpasswd_list_users: true

Anmeldeinformationen

Siehe auch Molecule-Tests

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
      # Verfügbare Optionen können sein: 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

Autor und Lizenz

  • Bodo Schulz

Lizenz

Apache

KOSTENLOSE SOFTWARE, GENIAL!

Über das Projekt

ansible role for handling htpasswd credentials

Installieren
ansible-galaxy install bodsch.htpasswd
GitHub Repository
Lizenz
Unknown
Downloads
7.8k
Besitzer
ex-developer (c, c++, php), ex-system administrator / engineer, keep-it-simple, monitoring, automation, system architect