From c8b92903d2b3fa422a4f47ccf5f2a49cc96a39bc Mon Sep 17 00:00:00 2001 From: lorenzo-maffeo-SAP <136887775+lorenzo-maffeo-SAP@users.noreply.github.com> Date: Mon, 3 Jun 2024 10:53:05 +0200 Subject: [PATCH] Fix LDAP secret retrieval Update load_ldap_password_secret.yml to fix LDAP secret retrieval --- roles/installer/tasks/load_ldap_password_secret.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/installer/tasks/load_ldap_password_secret.yml b/roles/installer/tasks/load_ldap_password_secret.yml index 2692dfecb..dcdd231ac 100644 --- a/roles/installer/tasks/load_ldap_password_secret.yml +++ b/roles/installer/tasks/load_ldap_password_secret.yml @@ -9,6 +9,6 @@ - name: Load LDAP bind password Secret content set_fact: - ldap_bind_password: '{{ ldap_password["resources"][0]["data"]["ldap-password"] | b64decode }}' + ldap_bind_password: '{{ ldap_password["resources"]["data"]["ldap-password"] | b64decode }}' no_log: "{{ no_log }}" - when: '"ldap-password" in ldap_password["resources"][0]["data"]' + when: '"ldap-password" in ldap_password["resources"]["data"]'