kc.sh build uses configured jdk

This commit is contained in:
Guido Grazioli 2024-05-06 13:02:51 +02:00
parent 70834ccf13
commit a45b18dc85

View file

@ -3,5 +3,8 @@
- name: "Rebuild {{ keycloak.service_name }} config" - name: "Rebuild {{ keycloak.service_name }} config"
ansible.builtin.shell: | ansible.builtin.shell: |
{{ keycloak.home }}/bin/kc.sh build {{ keycloak.home }}/bin/kc.sh build
environment:
PATH: "{{ keycloak_quarkus_java_home | default(keycloak_quarkus_pkg_java_home, true) }}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
JAVA_HOME: "{{ keycloak_quarkus_java_home | default(keycloak_quarkus_pkg_java_home, true) }}"
become: true become: true
changed_when: true changed_when: true