Optimized RBAC variables and async in keycloak

This commit is contained in:
2025-08-18 00:15:41 +02:00
parent 6443771d93
commit 29df95ed82
5 changed files with 9 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
{{
(
KEYCLOAK_DICTIONARY_REALM.clientScopes
| selectattr('name','equalto', KEYCLOAK_RBAC_GROUP_CLAIME)
| selectattr('name','equalto', KEYCLOAK_RBAC_GROUP_CLAIM)
| list | first
) | to_json
}}
@@ -27,7 +27,7 @@
scope_id_rbac: >-
{{ (
all_scopes.stdout | from_json
| selectattr('name','equalto', KEYCLOAK_RBAC_GROUP_CLAIME)
| selectattr('name','equalto', KEYCLOAK_RBAC_GROUP_CLAIM)
| list | first | default({})
).id | default('') }}
@@ -70,3 +70,5 @@
register: add_opt
changed_when: true
failed_when: add_opt.rc != 0
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"