mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
deprecate external auth related configuration issue: https://issues.redhat.com/browse/AAP-29476
22 lines
681 B
YAML
22 lines
681 B
YAML
---
|
|
- name: Log LDAP deprecated message if applicable
|
|
debug:
|
|
msg: |
|
|
[DEPRECATION WARNING] LDAP is deprecated, but ldap_password_secret configuration is set.
|
|
when:
|
|
- ldap_password_secret != ''
|
|
|
|
- name: Retrieve LDAP bind password Secret
|
|
k8s_info:
|
|
kind: Secret
|
|
namespace: '{{ ansible_operator_meta.namespace }}'
|
|
name: '{{ ldap_password_secret }}'
|
|
register: ldap_password
|
|
no_log: "{{ no_log }}"
|
|
|
|
- name: Load LDAP bind password Secret content
|
|
set_fact:
|
|
ldap_bind_password: '{{ ldap_password["resources"][0]["data"]["ldap-password"] | b64decode }}'
|
|
no_log: "{{ no_log }}"
|
|
when: '"ldap-password" in ldap_password["resources"][0]["data"]'
|