keycloak_quarkus: add selected java to PATH in systemd unit (#34)

main
Guido Grazioli 2022-05-31 10:43:55 +02:00 committed by GitHub
parent d5a63f55f9
commit 8454f5c341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 5 deletions

View File

@ -5,6 +5,7 @@ exclude_paths:
- molecule/ - molecule/
- .ansible-lint - .ansible-lint
- .yamllint - .yamllint
- meta/
rulesdir: rulesdir:
- ../../ansible-lint-custom-rules/rules/ - ../../ansible-lint-custom-rules/rules/

View File

@ -46,4 +46,3 @@ EOF
# run the playbook # run the playbook
ansible-playbook -i inventory playbooks/keycloak.yml ansible-playbook -i inventory playbooks/keycloak.yml
``` ```

View File

@ -2,10 +2,6 @@
- name: Prepare - name: Prepare
hosts: all hosts: all
tasks: tasks:
- name: Disable beta repos
ansible.builtin.command: yum config-manager --disable '*beta*'
ignore_errors: yes
- name: Install sudo - name: Install sudo
ansible.builtin.yum: ansible.builtin.yum:
name: sudo name: sudo

View File

@ -1,4 +1,5 @@
# {{ ansible_managed }} # {{ ansible_managed }}
KEYCLOAK_ADMIN={{ keycloak_quarkus_admin_user }} KEYCLOAK_ADMIN={{ keycloak_quarkus_admin_user }}
KEYCLOAK_ADMIN_PASSWORD='{{ keycloak_quarkus_admin_pass }}' KEYCLOAK_ADMIN_PASSWORD='{{ keycloak_quarkus_admin_pass }}'
PATH={{ keycloak_java_home | default(keycloak_rpm_java_home, true) }}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
JAVA_HOME={{ keycloak_java_home | default(keycloak_rpm_java_home, true) }} JAVA_HOME={{ keycloak_java_home | default(keycloak_rpm_java_home, true) }}