mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-21 14:48:50 +00:00
Update the keycloak_quarkus role defaults, argument specs, README and molecule scenarios to the current upstream releases. Keycloak 26.7.4, 26.7.5, 26.8.0 and 26.8.1 together fix more than 40 CVEs, among them CVE-2026-17526 (impersonation role can impersonate a realm admin) and CVE-2026-94000 (manage-users delegated admin can become realm-admin). The RHBK default moves from the 26.4 to the 26.6 stream. RHBK 26.6.7 (RHSA-2026:68278) fixes 28 CVEs; 26.4.16, the latest 26.4 release from the same day, fixes 7 of them. - keycloak_quarkus_version: 26.7.3 -> 26.8.1 - rhbk_version: 26.4.15 -> 26.6.7 - molecule/quarkus: SPID provider 26.7.1 -> 26.8.1 (new sha256), keycloak-kerberos-federation 26.7.3 -> 26.8.1 - molecule/quarkus_upgrade: prepare on 26.7.3, converge to 26.8.1 JDBC driver defaults are left unchanged; they still match the versions listed in Red Hat article 7033107 referenced from the defaults file.
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
---
|
|
- name: Prepare
|
|
hosts: all
|
|
vars_files:
|
|
- ../group_vars/all/vars.yml
|
|
- vars.yml
|
|
vars:
|
|
sudo_pkg_name: sudo
|
|
keycloak_quarkus_version: 26.7.3
|
|
keycloak_quarkus_additional_env_vars:
|
|
- key: KC_FEATURES_DISABLED
|
|
value: impersonation,kerberos
|
|
pre_tasks:
|
|
- name: Install sudo
|
|
ansible.builtin.apt:
|
|
name:
|
|
- sudo
|
|
- openjdk-17-jdk-headless
|
|
state: present
|
|
when:
|
|
- ansible_facts.os_family == 'Debian'
|
|
|
|
- name: "Ensure common prepare phase are set."
|
|
ansible.builtin.include_tasks: ../prepare.yml
|
|
|
|
- name: Display Ansible version
|
|
ansible.builtin.debug:
|
|
msg: "Ansible version is {{ ansible_version.full }}"
|
|
|
|
- name: "Ensure {{ sudo_pkg_name }} is installed (if user is root)."
|
|
ansible.builtin.dnf:
|
|
name: "{{ sudo_pkg_name }}"
|
|
when:
|
|
- ansible_facts["user_id"] == 'root'
|
|
|
|
- name: Gather the package facts
|
|
ansible.builtin.package_facts:
|
|
manager: auto
|
|
|
|
- name: "Check if {{ sudo_pkg_name }} is installed."
|
|
ansible.builtin.assert:
|
|
that:
|
|
- sudo_pkg_name in ansible_facts.packages
|
|
|
|
- name: Create certificate request
|
|
ansible.builtin.command: openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes -subj '/CN=instance'
|
|
args:
|
|
chdir: "{{ playbook_dir }}"
|
|
delegate_to: localhost
|
|
changed_when: false
|
|
roles:
|
|
- role: keycloak_quarkus
|
|
|
|
post_tasks:
|
|
- name: "Delete custom fact"
|
|
ansible.builtin.file:
|
|
path: /etc/ansible/facts.d/keycloak.fact
|
|
state: absent
|
|
become: "{{ molecule_prepare_require_privilege_escalation | default(true) }}"
|