mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-05 10:20:27 -07:00
- Added jdbc_download customization to both keycloak releases - Added option to allow invalid certificates to download JDBC drivers
20 lines
1.2 KiB
YAML
20 lines
1.2 KiB
YAML
---
|
|
- name: "Verify valid parameters for download credentials when specified"
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
When JDBC driver download credentials are set, both the username and the password MUST be set
|
|
when:
|
|
- (keycloak_quarkus_jdbc_download_user is undefined and keycloak_quarkus_jdbc_download_pass is not undefined) or (keycloak_quarkus_jdbc_download_pass is undefined and keycloak_quarkus_jdbc_download_user is not undefined)
|
|
- name: "Retrieve JDBC Driver from {{ keycloak_jdbc_download_user | default(keycloak_quarkus_default_jdbc[keycloak_quarkus_jdbc_engine].driver_jar_url) }}"
|
|
ansible.builtin.get_url:
|
|
url: "{{ keycloak_quarkus_jdbc_download_url | default(keycloak_quarkus_default_jdbc[keycloak_quarkus_jdbc_engine].driver_jar_url) }}"
|
|
dest: "{{ keycloak.home }}/providers"
|
|
owner: "{{ keycloak.service_user }}"
|
|
group: "{{ keycloak.service_group }}"
|
|
url_username: "{{ keycloak_quarkus_jdbc_download_user | default(omit) }}"
|
|
url_password: "{{ keycloak_quarkus_jdbc_download_pass | default(omit) }}"
|
|
validate_certs: "{{ keycloak_quarkus_jdbc_download_validate_certs | default(omit) }}"
|
|
mode: '0640'
|
|
become: true
|
|
notify:
|
|
- restart keycloak
|