mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-07-28 23:51:34 -07:00
Merge branch 'ansible-middleware:main' into stable
This commit is contained in:
commit
a309f7caae
16 changed files with 610 additions and 576 deletions
|
@ -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 }}"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue