bodsch.htpasswd
Ansible Role: htpasswd
This is an Ansible Role for managing user credentials using htpasswd
for web servers like nginx.
Requirements & Dependencies
- You need
passlib
version 1.6 or higher.
Supported Operating Systems
Tested on:
- ArchLinux
- Debian systems
- Debian 10 / 11
- Ubuntu 20.04
Configuration
Default Settings
htpasswd_credentials_path: /etc/nginx
htpasswd_credentials: []
htpasswd_list_users: true
Setting Credentials
You can also check the molecule tests for example configurations.
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 # This means the user will be removed.
# Check the documentation for crypt_scheme options
# Available choices include: 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
Author and License
- Created by Bodo Schulz
License
This is free software!
Informazioni sul progetto
ansible role for handling htpasswd credentials
Installa
ansible-galaxy install bodsch.htpasswd
Licenza
Unknown
Download
7.8k
Proprietario
ex-developer (c, c++, php),
ex-system administrator / engineer,
keep-it-simple,
monitoring,
automation,
system architect