https://github.com/bodsch/ansible-htpasswd
An Ansible Role to handle credentials over `htpasswd` for webservers like nginx.
https://github.com/bodsch/ansible-htpasswd
ansible ansible-role automation credentials htpasswd nginx
Last synced: 3 months ago
JSON representation
An Ansible Role to handle credentials over `htpasswd` for webservers like nginx.
- Host: GitHub
- URL: https://github.com/bodsch/ansible-htpasswd
- Owner: bodsch
- Created: 2021-09-20T10:59:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T03:59:43.000Z (almost 2 years ago)
- Last Synced: 2025-01-09T05:38:22.803Z (over 1 year ago)
- Topics: ansible, ansible-role, automation, credentials, htpasswd, nginx
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Role: `htpasswd`
An Ansible Role to handle credentials over `htpasswd` for webservers like nginx.
[][ci]
[][issues]
[][releases]
[][quality]
[ci]: https://github.com/bodsch/ansible-htpasswd/actions
[issues]: https://github.com/bodsch/ansible-htpasswd/issues?q=is%3Aopen+is%3Aissue
[releases]: https://github.com/bodsch/ansible-htpasswd/releases
[quality]: https://galaxy.ansible.com/bodsch/htpasswd
## Requirements & Dependencies
- `passlib>=1.6`
### Operating systems
Tested on
* ArchLinux
* Debian based
- Debian 10 / 11
- Ubuntu 20.04
## configuration
### default
```yaml
htpasswd_credentials_path: /etc/nginx
htpasswd_credentials: []
htpasswd_list_users: true
```
### credentials
see also [molecule tests](molecule/default/group_vars/all/vars.yaml)
```yaml
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