2021-12-14 10:26:42 +00:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
|
|
|
vars:
|
2022-03-24 18:00:30 +00:00
|
|
|
keycloak_admin_password: "remembertochangeme"
|
2022-04-28 09:33:40 +00:00
|
|
|
keycloak_jvm_package: java-11-openjdk-headless
|
2022-04-12 10:07:06 +00:00
|
|
|
roles:
|
|
|
|
- role: keycloak
|
2021-12-14 10:26:42 +00:00
|
|
|
tasks:
|
2021-12-22 09:05:48 +00:00
|
|
|
- name: Keycloak Realm Role
|
2022-04-12 10:07:06 +00:00
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: keycloak_realm
|
2021-12-22 09:05:48 +00:00
|
|
|
vars:
|
|
|
|
keycloak_client_default_roles:
|
|
|
|
- TestRoleAdmin
|
|
|
|
- TestRoleUser
|
|
|
|
keycloak_client_users:
|
|
|
|
- username: TestUser
|
|
|
|
password: password
|
|
|
|
client_roles:
|
|
|
|
- client: TestClient
|
|
|
|
role: TestRoleUser
|
|
|
|
realm: "{{ keycloak_realm }}"
|
|
|
|
- username: TestAdmin
|
|
|
|
password: password
|
|
|
|
client_roles:
|
|
|
|
- client: TestClient
|
|
|
|
role: TestRoleUser
|
|
|
|
realm: "{{ keycloak_realm }}"
|
|
|
|
- client: TestClient
|
|
|
|
role: TestRoleAdmin
|
|
|
|
realm: "{{ keycloak_realm }}"
|
|
|
|
keycloak_realm: TestRealm
|
|
|
|
keycloak_clients:
|
|
|
|
- name: TestClient
|
|
|
|
roles: "{{ keycloak_client_default_roles }}"
|
|
|
|
realm: "{{ keycloak_realm }}"
|
|
|
|
public_client: "{{ keycloak_client_public }}"
|
|
|
|
web_origins: "{{ keycloak_client_web_origins }}"
|
|
|
|
users: "{{ keycloak_client_users }}"
|
2022-01-19 15:47:47 +00:00
|
|
|
client_id: TestClient
|