James E. Blair b6a44a9550 Add eatmydata support to ensure-zookeeper
Also add centos-platforms for the zookeeper test matrix since it
appears the role may have support for redhat but is not being
tested in that environment.

Change-Id: I4ab0e4fe42eab46ff8286760518ea9ed280b6733
2025-04-03 13:19:14 -07:00

41 lines
1.2 KiB
YAML

# 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: Set package list
set_fact:
packages:
- default-jdk-headless
- "{{ 'eatmydata' if zookeeper_use_eatmydata else False }}"
- name: Install packages
package:
name: "{{ packages | select | list }}"
state: present
become: true