mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-06 02:40:30 -07:00
13 lines
559 B
YAML
13 lines
559 B
YAML
- name: Create client roles
|
|
middleware_automation.keycloak.keycloak_role:
|
|
name: "{{ item }}"
|
|
realm: "{{ client.realm | default(keycloak_realm) }}"
|
|
client_id: "{{ client.name }}"
|
|
auth_client_id: "{{ keycloak_auth_client }}"
|
|
auth_keycloak_url: "{{ keycloak_url }}{{ keycloak_context }}"
|
|
auth_realm: "{{ keycloak_auth_realm }}"
|
|
auth_username: "{{ keycloak_admin_user }}"
|
|
auth_password: "{{ keycloak_admin_password }}"
|
|
state: present
|
|
loop: "{{ client.roles | flatten }}"
|
|
no_log: "{{ keycloak_no_log | default('True') }}"
|