mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-08 11:50:29 -07:00
move client roles check out of loop
This commit is contained in:
parent
ce6982ad51
commit
d3887ae9bd
2 changed files with 1 additions and 2 deletions
|
@ -67,10 +67,10 @@
|
||||||
|
|
||||||
- name: Create client roles
|
- name: Create client roles
|
||||||
include_tasks: manage_client_roles.yml
|
include_tasks: manage_client_roles.yml
|
||||||
when: keycloak_rhsso_enable
|
|
||||||
loop: "{{ keycloak_clients | flatten }}"
|
loop: "{{ keycloak_clients | flatten }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: client
|
loop_var: client
|
||||||
|
when: "'roles' in client"
|
||||||
|
|
||||||
- name: Create client users
|
- name: Create client users
|
||||||
include_tasks: manage_client_users.yml
|
include_tasks: manage_client_users.yml
|
||||||
|
|
|
@ -10,4 +10,3 @@
|
||||||
auth_password: "{{ keycloak_admin_password }}"
|
auth_password: "{{ keycloak_admin_password }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ client.roles | flatten }}"
|
loop: "{{ client.roles | flatten }}"
|
||||||
when: "'roles' in client"
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue