Fix zookeeper install on debian bookworm

This is a workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030129
which prevents installation of the JDK on bookworm.

This also updates the test platforms for this role.

Change-Id: I1efe59a4e7884fffe15bc623f717f891189f48ca
This commit is contained in:
James E. Blair
2023-08-11 09:15:01 -07:00
committed by Clark Boylan
parent fcd579ea5b
commit df906ec2f7
3 changed files with 102 additions and 3 deletions

View File

@@ -0,0 +1,35 @@
# Due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030129
# install certs before the JDK.
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023748 has more details
# including the request that the fix be backported to stable. TODO: once the
# backport has been made we can stop installing from testing
- name: Block to collect java cert package install steps
block:
- name: Enable testing repo
apt_repository:
repo: deb http://deb.debian.org/debian testing main
state: present
update_cache: yes
filename: debian-testing
become: true
- name: Install Java certs
apt:
name: ca-certificates-java
default_release: testing
state: present
become: true
- name: Disable testing repo
apt_repository:
repo: deb http://deb.debian.org/debian testing main
state: absent
update_cache: yes
filename: debian-testing
become: true
- name: Install JDK
apt:
name: default-jdk-headless
state: present
become: true

View File

@@ -1,6 +1,8 @@
- name: Install distro-specific packages
include_tasks: "{{ zj_distro_os }}"
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- "default.yaml"