Install keycloak using ansible middleware execution environment

by ggraziol
GNU/Linux ◆ xterm-256color ◆ bash 1138 views

Demonstrate how to deploy keycloak using the ansible middleware_automation collections execution environment and ansible-navigator.

Prerequisite is a fedora/rhel with installed packages:

  • python3
  • python3-virtualenv
  • podman

Video index (click to jump to section):

  • Prepare execution
    • 00:00 show installed software versions
    • 00:17 create a virtualenv with ansible-navigator
  • Create target instance with qemu/kvm
    • 01:13 download fedora cloud image
    • 01:25 create ssh key pair for ansible user
    • 01:46 create user-data for cloud-init the fedora cloud image with user credentials
    • 02:30 create virtual machine with fedora and user-data
  • Create ansible config
    • 04:11 test ssh connectivity from host to guest vm
    • 04:32 create ansible-navigator config setting ee image and other defaults
    • 05:08 create ansible.cfg config (ssh user details)
  • Playbook and inventory
    • 05:32 create keycloak playbook importing collection role
    • 06:10 create inventory containing virtual machine as keycloak host
  • Execute the deployment
    • 06:35 check ansible-navigator collections
    • 07:10 launch deployment of keycloak
  • Test deployment
    • 08:00 test deployment and status of service with curl