Addressed review comments
parent
0fdd89d571
commit
2324d4070e
|
@ -42,6 +42,7 @@
|
||||||
auth_username: "{{ keycloak_admin_user }}"
|
auth_username: "{{ keycloak_admin_user }}"
|
||||||
auth_password: "{{ keycloak_admin_password }}"
|
auth_password: "{{ keycloak_admin_password }}"
|
||||||
realm: "{{ item.realm }}"
|
realm: "{{ item.realm }}"
|
||||||
|
default_roles: "{{ item.roles | default(omit) }}"
|
||||||
client_id: "{{ item.client_id | default(omit) }}"
|
client_id: "{{ item.client_id | default(omit) }}"
|
||||||
id: "{{ item.id | default(omit) }}"
|
id: "{{ item.id | default(omit) }}"
|
||||||
name: "{{ item.name | default(omit) }}"
|
name: "{{ item.name | default(omit) }}"
|
||||||
|
@ -62,7 +63,7 @@
|
||||||
state: present
|
state: present
|
||||||
register: create_client_result
|
register: create_client_result
|
||||||
loop: "{{ keycloak_clients | flatten }}"
|
loop: "{{ keycloak_clients | flatten }}"
|
||||||
when: keycloak_clients is defined
|
when: (item.name is defined and item.client_id is defined) or (item.name is defined and item.id is defined)
|
||||||
|
|
||||||
- name: Create client roles
|
- name: Create client roles
|
||||||
include_tasks: manage_client_roles.yml
|
include_tasks: manage_client_roles.yml
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
realm: "{{ client.realm }}"
|
realm: "{{ client.realm }}"
|
||||||
client_id: "{{ client.name }}"
|
client_id: "{{ client.name }}"
|
||||||
description: "{{ item.description | default(omit) }}"
|
|
||||||
auth_client_id: "{{ keycloak_auth_client }}"
|
auth_client_id: "{{ keycloak_auth_client }}"
|
||||||
auth_keycloak_url: "{{ keycloak_url }}/auth"
|
auth_keycloak_url: "{{ keycloak_url }}/auth"
|
||||||
auth_realm: "{{ keycloak_auth_realm }}"
|
auth_realm: "{{ keycloak_auth_realm }}"
|
||||||
|
|
Loading…
Reference in New Issue