bodsch.htpasswd

Ansible ロール: htpasswd

webサーバー(nginxなど)用の認証情報を htpasswd で管理するためのAnsibleロールです。

GitHub Workflow Status GitHub issues GitHub release (latest by date) Ansible Quality Score

要件と依存関係

  • 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
      # https://docs.ansible.com/ansible/latest/collections/community/general/htpasswd_module.html#parameter-crypt_scheme
      # 利用可能な選択肢は: 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

作者とライセンス

  • ボード・シュルツ

ライセンス

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