Ansible role that uses htpasswd
module to create a file with user/password
hashes to be used by Apache / Nginx / etc.
This will automatically install requirements (passlib).
Possible variables:
htpasswd_file
: The file to savehtpasswd_file_owner
: optional owner (default=root)htpasswd_file_group
: optional group (default=root)htpasswd_file_mode
: optional mode (default=0640)htpasswd_users
: list with keysname
andpassword
- role: baschny.htpasswd
vars:
htpasswd_file: /etc/htaccess
htpasswd_users:
- name: dev
password: dev
- name: admin
password: admin
Licensed under the MIT License. See the LICENSE file for details.
Use the github issue tracker.