Add temp task

This commit is contained in:
Christer Warén
2025-10-01 01:28:08 +03:00
parent 82aba2e352
commit 2b74ceba84

View File

@@ -913,6 +913,32 @@
- keycloak - keycloak
- sso - sso
- name: "Deployer - Keacloak - Configure - Groups : Create"
community.general.keycloak_group:
auth_keycloak_url: "http://127.0.0.1:8080"
auth_realm: master
auth_username: "{{ config.keycloak.users.admin.username }}"
auth_password: "{{ config.keycloak.users.admin.password }}"
realm: "master"
name: "{{ group }}"
vars:
groups:
- admin
- users
loop: "{{ groups }}"
loop_control:
label: "{{ group }}"
loop_var: group
- debug:
msg: "{{ config.keycloak.users[username].groups | map('combine', {'name': item}) | map('combine', {'state': 'present'}) | list }}"
loop: "{{ config.keycloak.users.keys() | list }}"
loop_control:
label: "{{ username }}"
loop_var: username
tags:
- test
- name: "Deployer - Keacloak - Configure - Users : Create" - name: "Deployer - Keacloak - Configure - Users : Create"
community.general.keycloak_user: community.general.keycloak_user:
auth_keycloak_url: "http://127.0.0.1:8080" auth_keycloak_url: "http://127.0.0.1:8080"
@@ -927,6 +953,7 @@
- type: password - type: password
value: "{{ config.keycloak.users[username].password }}" value: "{{ config.keycloak.users[username].password }}"
temporary: false temporary: false
groups: "{{ config.keycloak.users[username].groups | map('combine', {'state': 'present'}) | list | map('dict2items') | list }}"
enabled: on enabled: on
state: present state: present
loop: "{{ config.keycloak.users.keys() | list }}" loop: "{{ config.keycloak.users.keys() | list }}"