Separate playbooks for installation and configuration
parent
eb849021a9
commit
4cb021fe2c
|
@ -0,0 +1,2 @@
|
||||||
|
[keycloak]
|
||||||
|
localhost ansible_connection=local
|
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
- name: Playbook for Keycloak Hosts
|
||||||
|
hosts: keycloak
|
||||||
|
tasks:
|
||||||
|
- name: Keycloak Realm Role
|
||||||
|
include_role:
|
||||||
|
name: keycloak_realm
|
||||||
|
vars:
|
||||||
|
keycloak_admin_password: "changeme"
|
||||||
|
keycloak_realm: TestRealm
|
||||||
|
keycloak_clients:
|
||||||
|
- name: TestClient1
|
||||||
|
roles:
|
||||||
|
- TestClient1Admin
|
||||||
|
- TestClient1User
|
||||||
|
realm: "{{ keycloak_realm }}"
|
||||||
|
public_client: True
|
||||||
|
web_origins:
|
||||||
|
- http://testclient1origin/application
|
||||||
|
- http://testclient1origin/other
|
||||||
|
users:
|
||||||
|
- username: TestUser
|
||||||
|
password: password
|
||||||
|
client_roles:
|
||||||
|
- client: TestClient1
|
||||||
|
role: TestClient1User
|
||||||
|
realm: "{{ keycloak_realm }}"
|
|
@ -11,26 +11,3 @@
|
||||||
name: keycloak
|
name: keycloak
|
||||||
vars:
|
vars:
|
||||||
keycloak_admin_password: "changeme"
|
keycloak_admin_password: "changeme"
|
||||||
- name: Keycloak Realm Role
|
|
||||||
include_role:
|
|
||||||
name: keycloak_realm
|
|
||||||
vars:
|
|
||||||
keycloak_admin_password: "changeme"
|
|
||||||
keycloak_realm: TestRealm
|
|
||||||
keycloak_clients:
|
|
||||||
- name: TestClient1
|
|
||||||
roles:
|
|
||||||
- TestClient1Admin
|
|
||||||
- TestClient1User
|
|
||||||
realm: "{{ keycloak_realm }}"
|
|
||||||
public_client: True
|
|
||||||
web_origins:
|
|
||||||
- http://testclient1origin/application
|
|
||||||
- http://testclient1origin/other
|
|
||||||
users:
|
|
||||||
- username: TestUser
|
|
||||||
password: password
|
|
||||||
client_roles:
|
|
||||||
- client: TestClient1
|
|
||||||
role: TestClient1User
|
|
||||||
realm: "{{ keycloak_realm }}"
|
|
||||||
|
|
Loading…
Reference in New Issue