fix: keycloak problems

This commit is contained in:
2023-01-08 00:20:21 +01:00
parent a68fbd4838
commit 4b9ee96989
4 changed files with 62 additions and 19 deletions

View File

@@ -18,8 +18,6 @@
src: "{{ item }}"
dest: "/opt/keycloak/"
with_items:
- keycloak.env
- postgres.env
- postgres_password
- name: Deploy compose templates
@@ -28,3 +26,46 @@
pull: true
files:
- "keycloak.yaml"
- name: Check/Wait for Keycloak to be up
uri:
url: https://keycloak.atlantishq.de/health
method: GET
return_content: yes
status_code: 200
body_format: json
register: result
until: result.json.status == "UP"
retries: 10
delay: 20
#- name: Image Client
# local_action:
# module: keycloak_client
# auth_client_id: admin-cli
# auth_keycloak_url: https://keycloak.atlantishq.de/
# auth_realm: master
# auth_username: admin
# auth_password: "{{ keycloak_admin_password }}"
# state: present
# realm: master
# client_id: web1
# id: 00000000-0000-0000-0000-000000000001
# name: Images Upload
# description: Client for Web1 Services
# enabled: True
# client_authenticator_type: client-secret
# secret: "{{ keycloak_images_client_secret }}"
# redirect_uris:
# - https://images.atlantishq.de/*
# - https://images.potaris.de/*
# - https://sls.atlantishq.de/*
# - https://sounds.potaris.de/*
# - https://serienampel.atlantishq.de/*
# web_origins:
# - https://images.atlantishq.de/*
# - https://images.potaris.de/*
# - https://sls.atlantishq.de/*
# - https://serienampel.atlantishq.de/*
# frontchannel_logout: False
# protocol: openid-connect