mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-08-10 16:14:29 -07:00
Add option to override JDBC download parameters
This commit is contained in:
parent
a33393a477
commit
a7b9f0ef97
2 changed files with 20 additions and 2 deletions
|
@ -1,10 +1,19 @@
|
|||
---
|
||||
- name: "Retrieve JDBC Driver from {{ keycloak_jdbc[keycloak_quarkus_jdbc_engine].driver_jar_url }}"
|
||||
- name: Verify valid parameters for download credentials when specified
|
||||
fail:
|
||||
msg: >-
|
||||
When JDBC driver download credentials are set, both the username and the password MUST be set
|
||||
when:
|
||||
- keycloak_jdbc_download_user is undefined and keycloak_jdbc_download_pass is not undefined
|
||||
- keycloak_jdbc_download_pass is undefined and keycloak_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_default_jdbc[keycloak_quarkus_jdbc_engine].driver_jar_url }}"
|
||||
url: "{{ keycloak_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_jdbc_download_user | default(omit) }}"
|
||||
url_password: "{{ keycloak_jdbc_download_pass | default(omit) }}"
|
||||
mode: '0640'
|
||||
become: true
|
||||
notify:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue