Merge branch 'ansible-middleware:main' into stable

This commit is contained in:
Pavan Kumar Motaparthi 2022-01-18 17:03:54 -06:00 committed by GitHub
commit a309f7caae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 610 additions and 576 deletions

View file

@ -142,7 +142,7 @@
- name: "Deploy Keycloak's standalone.xml"
become: yes
template:
src: "{{ 'templates/standalone-rhsso.xml.j2' if keycloak_rhsso_enable else 'templates/standalone.xml.j2' }}"
src: templates/standalone.xml.j2
dest: "{{ keycloak_config_path_to_standalone_xml }}"
owner: "{{ keycloak_service_user }}"
group: "{{ keycloak_service_group }}"
@ -154,7 +154,7 @@
- name: "Deploy Keycloak's standalone.xml with remote cache store"
become: yes
template:
src: "{{ 'templates/standalone-rhsso-jdg.xml.j2' if keycloak_rhsso_enable else 'templates/standalone-infinispan.xml.j2' }}"
src: templates/standalone-infinispan.xml.j2
dest: "{{ keycloak_config_path_to_standalone_xml }}"
owner: "{{ keycloak_service_user }}"
group: "{{ keycloak_service_group }}"

View file

@ -6,9 +6,17 @@
tags:
- prereqs
- include_tasks: tasks/install.yml
- name: Include install tasks
include_tasks: tasks/install.yml
- include_tasks: tasks/systemd.yml
- name: Include systemd tasks
include_tasks: tasks/systemd.yml
- name: Link default logs directory
file:
state: link
src: "{{keycloak_jboss_home}}/standalone/log"
dest: /var/log/keycloak
- block:
- name: Check admin credentials by generating a token

View file

@ -38,6 +38,9 @@
daemon_reload: yes
when: systemdunit.changed
- set_fact:
health_url: "{{ keycloak_management_url }}/health"
- name: start keycloak
systemd:
name: keycloak
@ -56,9 +59,6 @@
- meta: flush_handlers
- set_fact:
health_url: "{{ keycloak_management_url }}/health"
- name: "Wait until Keycloak becomes active {{ health_url }}"
uri:
url: "{{ health_url }}"