move client roles check out of loop
parent
ce6982ad51
commit
d3887ae9bd
|
@ -67,10 +67,10 @@
|
|||
|
||||
- name: Create client roles
|
||||
include_tasks: manage_client_roles.yml
|
||||
when: keycloak_rhsso_enable
|
||||
loop: "{{ keycloak_clients | flatten }}"
|
||||
loop_control:
|
||||
loop_var: client
|
||||
when: "'roles' in client"
|
||||
|
||||
- name: Create client users
|
||||
include_tasks: manage_client_users.yml
|
||||
|
|
|
@ -10,4 +10,3 @@
|
|||
auth_password: "{{ keycloak_admin_password }}"
|
||||
state: present
|
||||
loop: "{{ client.roles | flatten }}"
|
||||
when: "'roles' in client"
|
||||
|
|
Loading…
Reference in New Issue