diskimage-builder/roles/dib-ensure-debootstrap/tasks/main.yaml
Clark Boylan 7b6247554e Add Jammy functesting to dib
This adds arm64 ubuntu-minimal Jammy functests and x86 ubuntu image
based Jammy functests. To make this happen we have to install
debootstrap from debian unstable on the functest nodes in order to get
access to a debootstrap that knows what jammy is.

As we ramp up Jammy support in our tools having good testing will be
helpful.

Change-Id: I1d1dc752ce176457d0656cbd50e27a2721ca9856
2022-05-04 13:03:50 -07:00

13 lines
545 B
YAML

- name: Install debootstrap/unstable
# This is shell because doing it with native ansible modules went nowhere
become: yes
shell: |
set -ex
echo "APT::Default-Release: 'stable';" > /etc/apt/apt.conf.d/default-release
echo "deb http://deb.debian.org/debian unstable main" > /etc/apt/sources.list.d/unstable-debian.list
apt-get update
apt-get install -y debootstrap/unstable
# Remove the use of unstable as it seems to interfere with other tasks
rm /etc/apt/sources.list.d/unstable-debian.list
apt-get update