From eeb69e7ba257f1e20040913410d4f1c5690df414 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sat, 16 Feb 2019 09:01:17 -0800 Subject: [PATCH] Fix htpasswd creation for registry We were using the wrong filename and encryption type. Change-Id: I48d2a7288e5cd52e57f5632fee17f677429a1a9c --- playbooks/roles/registry/tasks/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/registry/tasks/main.yaml b/playbooks/roles/registry/tasks/main.yaml index 0aafb634d3..5fcaad3081 100644 --- a/playbooks/roles/registry/tasks/main.yaml +++ b/playbooks/roles/registry/tasks/main.yaml @@ -14,11 +14,13 @@ package: name: - python3-passlib + - python3-bcrypt state: present - name: Write htpassword file htpasswd: create: true - path: /var/registry/auth/htpassword + crypt_scheme: bcrypt + path: /var/registry/auth/htpasswd name: "{{ registry_user }}" password: "{{ registry_password }}" - name: Write TLS private key