2021-12-14 10:26:42 +00:00
|
|
|
- name: Create client roles
|
|
|
|
community.general.keycloak_role:
|
|
|
|
name: "{{ item }}"
|
|
|
|
realm: "{{ client.realm }}"
|
|
|
|
client_id: "{{ client.name }}"
|
|
|
|
auth_client_id: "{{ keycloak_auth_client }}"
|
2022-04-07 12:07:28 +00:00
|
|
|
auth_keycloak_url: "{{ keycloak_url }}{{ keycloak_context }}"
|
2021-12-14 10:26:42 +00:00
|
|
|
auth_realm: "{{ keycloak_auth_realm }}"
|
|
|
|
auth_username: "{{ keycloak_admin_user }}"
|
|
|
|
auth_password: "{{ keycloak_admin_password }}"
|
|
|
|
state: present
|
|
|
|
loop: "{{ client.roles | flatten }}"
|
2022-02-24 14:00:10 +00:00
|
|
|
no_log: True
|