Skip to content

bird-house/ansible-keycloak-playbook

Repository files navigation

Keycloak Ansible Playbook

Description

Use Ansible to deploy a Keycloak service.

Warning

This playbook is under development.

This playbook is based on https://github.com/pmarek-stfc/Ansible-Keycloak-Playbook

Introduction

Keycloak Ansible Playbook can provision a remote server to run Keycloak.

Prepare

To test this Ansible script you can use Vagrant. On macOS install Vagrant and Ansible:

$ brew cask install virtualbox
$ brew cask install vagrant
$ brew install ansible

You need to fetch the depending external roles:

$ ansible-galaxy install -p roles -r requirements.yml
OR
$ make roles

Run playbook with Vagrant

Initial setup:

$ vagrant up

Provision with Ansible again:

$ vagrant provision

Login with SSH:

$ vagrant ssh

Remove VMs:

$ vagrant destroy -f

Run playbook manually

Run playbook to deploy to localhost:

$ ansible-playbook -i inventory.yml playbook.yml
OR
$ make play

Demo Instance

This playbook installs a keycloak service which is available at: http://localhost:8080/auth/

You can log-in to the administrator console with username=admin, password=admin: http://localhost:8080/auth/admin

It set-ups a demo realm with a demo user:

  • client-id: demo
  • client-secret: c083d72c-a262-40b1-ad51-326f6977d74b
  • OAuth2 workflow: client credentials

About

Ansible Playbook to deploy a Keycloak service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published