bodsch.htpasswd

Ansible角色: htpasswd

用来为像nginx这样的Web服务器处理htpasswd凭据的Ansible角色。

GitHub工作流状态 GitHub问题 GitHub发行版(最新日期) Ansible质量评分

需求与依赖

  • passlib>=1.6

操作系统

已在以下系统上测试

  • ArchLinux
  • 基于Debian的
    • Debian 10 / 11
    • Ubuntu 20.04

配置

默认配置

htpasswd_credentials_path: /etc/nginx

htpasswd_credentials: []

htpasswd_list_users: true

凭据

另见 molecule 测试

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
      crypt_scheme: plaintext

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

作者与许可证

  • Bodo Schulz

许可证

Apache

免费软件,太棒了!

关于项目

ansible role for handling htpasswd credentials

安装
ansible-galaxy install bodsch.htpasswd
许可证
Unknown
下载
7.8k
拥有者
ex-developer (c, c++, php), ex-system administrator / engineer, keep-it-simple, monitoring, automation, system architect