Ansible role for Keycloak
- Installs Keycloak
- Installs a systemd service
- Creates an admin user
- The target host must have systemd installed (e.g. CentOS/RHEL 7+, Debian 8+, Ubuntu 15.04+)
Include the role and define any variables as described below
keycloak_admin_password
(required)- Password for the admin user
keycloak_admin_username
(optional)- Username for the admin user
- Default value: 'admin'
keycloak_group
(optional)- Default value: keycloak
keycloak_home
(optional)- Default value: /opt/keycloak
keycloak_java_version
(optional)- Default value: 8
keycloak_user
(optional)- Default value: keycloak
keycloak_version
(optional)- Version of Keycloak to install
- Default value: see defaults/main.yml
- hosts: keycloak-servers
roles:
- keycloak
vars:
keycloak_admin_password: "{{ vault_keycloak_admin_password }}"