OfficialToolConfig as code / DevOpsActive
keycloak
Ansible collection to install and configure Keycloak / Red Hat build of Keycloak.Keycloakを導入・設定するAnsibleコレクション
- ★
- 139
- Forks
- 75
- Contributors
- 47
- Updated
- 2026-10-16
- KC
- —
- License
- Apache-2.0
What it can doできること4
- Install Keycloak (Quarkus-based, 19+) on hosts with an Ansible role, including clustered setups; the legacy role covers older WildFly-based versions and RH-SSO.Ansibleのロールで、Keycloak(Quarkus版、19以降)をホストにインストールできる(クラスタ構成にも対応)。旧ロールでWildFly版やRH-SSOにも対応
- Install offline from the controller node or from alternate sources (Nexus, Artifactory, proxy).コントローラノードからのオフラインインストールや、社内リポジトリ(Nexus、Artifactory、プロキシ)からの取得が可能
- Configure realms, user federation, clients, client roles and users through a role.ロールで、realm・ユーザーフェデレーション・クライアント・クライアントロール・ユーザーを設定
- Manage a running Keycloak with modules (e.g. client scopes with protocol mappers, authentication flows); migrate from
community.generalmodules by renaming the prefix.稼働中のKeycloakをモジュールで管理(プロトコルマッパー付きクライアントスコープ、認証フローなど)。community.generalからはプレフィックス変更で移行可能
What it cannot do / limitsできないこと・制約3
- Not a Keycloak extension — an Ansible collection run from a controller.Keycloak拡張ではなく、コントローラから実行するAnsibleコレクション
- Red Hat customers should use the certified
redhat.rhbk/redhat.ssocollections instead.Red Hatの顧客は、認定版のredhat.rhbk/redhat.ssoコレクションを使うべきとされている - For clusters, all hosts must be targeted by the same playbook run.クラスタ構成では、全ホストを同じplaybook実行の対象にする必要がある
Requirements前提条件
- Ansible 2.16+ and the Python packages
netaddrandlxmlon the controller.Ansible 2.16以上と、コントローラ上のPythonパッケージnetaddr・lxml