mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-07-25 00:44:48 +00:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
---
|
|
- name: Playbook for Keycloak Realm and Client Configuration
|
|
hosts: all
|
|
tasks:
|
|
- name: Keycloak Realm Role
|
|
ansible.builtin.include_role:
|
|
name: middleware_automation.keycloak.keycloak_realm
|
|
vars:
|
|
keycloak_realm_admin_password: "remembertochangeme"
|
|
keycloak_realm_realm: TestRealm
|
|
keycloak_realm_client_default_roles:
|
|
- TestRoleAdmin
|
|
- TestRoleUser
|
|
keycloak_realm_client_users:
|
|
- username: TestUser
|
|
password: password
|
|
client_roles:
|
|
- client: TestClient1
|
|
role: TestRoleUser
|
|
realm: TestRealm
|
|
- username: TestAdmin
|
|
password: password
|
|
client_roles:
|
|
- client: TestClient1
|
|
role: TestRoleUser
|
|
realm: TestRealm
|
|
- client: TestClient1
|
|
role: TestRoleAdmin
|
|
realm: TestRealm
|
|
keycloak_realm_clients:
|
|
- name: TestClient1
|
|
client_id: TestClient1
|
|
roles: "{{ keycloak_realm_client_default_roles }}"
|
|
realm: TestRealm
|
|
public_client: true
|
|
web_origins:
|
|
- http://testclient1origin/application
|
|
- http://testclient1origin/other
|
|
users: "{{ keycloak_realm_client_users }}"
|