diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-10-27 22:50:53 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-10-27 22:50:53 +0200 |
commit | 4607cc548abd12a255f98288e29f812f50edf186 (patch) | |
tree | b9b84a0d7c313fe4af3b8188103a462d0c649df4 /roles/nginx/auth | |
parent | add ssl exporter and ssh check for all debian/ubuntu based hosts (diff) |
add filter to generate salts for various password hashes
Diffstat (limited to 'roles/nginx/auth')
-rw-r--r-- | roles/nginx/auth/basic/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/nginx/auth/basic/tasks/main.yml b/roles/nginx/auth/basic/tasks/main.yml index 1eb99183..6de2c433 100644 --- a/roles/nginx/auth/basic/tasks/main.yml +++ b/roles/nginx/auth/basic/tasks/main.yml @@ -15,5 +15,5 @@ mode: 0640 content: | {% for user,password in nginx_auth_basic_users.items() %} - {{ user }}:{{ password | password_hash('apr_md5_crypt', 65534 | random(seed=(inventory_hostname+user)) | string) }} + {{ user }}:{{ password | password_hash('apr_md5_crypt', (user~'@'~inventory_hostname~'/nginx') | apr_md5_crypt_salt) }} {% endfor %} |