mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-08-07 14:44:30 -07:00
Merge pull request #274 from guidograzioli/273_extra_envvars_rebuild
Load environment vars during kc rebuild
This commit is contained in:
commit
2379e10091
6 changed files with 10 additions and 7 deletions
|
@ -2,9 +2,6 @@
|
|||
# cf. https://www.keycloak.org/server/configuration#_optimize_the_keycloak_startup
|
||||
- name: "Rebuild {{ keycloak.service_name }} config"
|
||||
ansible.builtin.shell: | # noqa blocked_modules shell is necessary here
|
||||
{{ 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) }}"
|
||||
env -i bash -c "set -a ; source {{ keycloak_quarkus_sysconf_file }} ; {{ keycloak.home }}/bin/kc.sh build "
|
||||
become: true
|
||||
changed_when: true
|
||||
|
|
|
@ -22,4 +22,5 @@
|
|||
become: true
|
||||
register: systemdunit
|
||||
notify:
|
||||
- rebuild keycloak config
|
||||
- restart keycloak
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue