summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/nginx/auth/basic/tasks/main.yml2
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 %}