bodsch.htpasswd

Rol de Ansible: htpasswd

Un Rol de Ansible para manejar credenciales a través de htpasswd para servidores web como nginx.

Estado del flujo de trabajo de GitHub Problemas de GitHub Versión más reciente de GitHub Puntuación de calidad de Ansible

Requisitos y dependencias

  • passlib>=1.6

Sistemas operativos

Probado en

  • ArchLinux
  • Basados en Debian
    • Debian 10 / 11
    • Ubuntu 20.04

Configuración

Predeterminado

htpasswd_credentials_path: /etc/nginx

htpasswd_credentials: []

htpasswd_list_users: true

Credenciales

Consulte también pruebas de molécula

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
      # las opciones disponibles podrían ser: 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 y Licencia

  • Bodo Schulz

Licencia

Apache

¡SOFTWARE GRATIS, SÍ SEÑOR!

Acerca del proyecto

ansible role for handling htpasswd credentials

Instalar
ansible-galaxy install bodsch.htpasswd
Licencia
Unknown
Descargas
7.8k
Propietario
ex-developer (c, c++, php), ex-system administrator / engineer, keep-it-simple, monitoring, automation, system architect