Skip to content

Commit 0a4146d

Browse files
committed
Install Ansible from Debian Testing
Signed-off-by: Stephen Finucane <[email protected]>
1 parent ad69a4b commit 0a4146d

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

tests/ci-csi-cinder-e2e.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ cleanup() {
4141
}
4242
trap cleanup EXIT
4343

44+
# Install Ansible from Trixie (Debian Testing) to allow us to talk to a host
45+
# running Python 3.12 like Ubuntu 24.04
46+
#
47+
# https://woju.eu/blog/2025/03/ansible-bookworm/
48+
cat << EOF > /etc/apt/sources.list.d/trixie.list
49+
deb https://deb.debian.org/debian trixie main
50+
EOF
51+
52+
cat << EOF > /etc/apt/preferences.d/ansible.pref
53+
Package: *
54+
Pin: release n=trixie
55+
Pin-Priority: -10
56+
57+
Package: ansible* python3-netaddr
58+
Pin: release n=trixie
59+
Pin-Priority: 990
60+
EOF
61+
4462
apt-get update
4563
apt-get install -y python3-requests ansible
4664

tests/ci-csi-manila-e2e.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ cleanup() {
4141
}
4242
trap cleanup EXIT
4343

44+
# Install Ansible from Trixie (Debian Testing) to allow us to talk to a host
45+
# running Python 3.12 like Ubuntu 24.04
46+
#
47+
# https://woju.eu/blog/2025/03/ansible-bookworm/
48+
cat << EOF > /etc/apt/sources.list.d/trixie.list
49+
deb https://deb.debian.org/debian trixie main
50+
EOF
51+
52+
cat << EOF > /etc/apt/preferences.d/ansible.pref
53+
Package: *
54+
Pin: release n=trixie
55+
Pin-Priority: -10
56+
57+
Package: ansible* python3-netaddr
58+
Pin: release n=trixie
59+
Pin-Priority: 990
60+
EOF
61+
4462
apt-get update
4563
apt-get install -y python3-requests ansible
4664

tests/ci-occm-e2e.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,24 @@ cleanup() {
4242
}
4343
trap cleanup EXIT
4444

45+
# Install Ansible from Trixie (Debian Testing) to allow us to talk to a host
46+
# running Python 3.12 like Ubuntu 24.04
47+
#
48+
# https://woju.eu/blog/2025/03/ansible-bookworm/
49+
cat << EOF > /etc/apt/sources.list.d/trixie.list
50+
deb https://deb.debian.org/debian trixie main
51+
EOF
52+
53+
cat << EOF > /etc/apt/preferences.d/ansible.pref
54+
Package: *
55+
Pin: release n=trixie
56+
Pin-Priority: -10
57+
58+
Package: ansible* python3-netaddr
59+
Pin: release n=trixie
60+
Pin-Priority: 990
61+
EOF
62+
4563
apt-get update
4664
apt-get install -y python3-requests ansible
4765

@@ -133,4 +151,4 @@ scp -i ~/.ssh/google_compute_engine \
133151
# If Boskos is being used then release the resource back to Boskos.
134152
[ -z "${BOSKOS_HOST:-}" ] || python3 tests/scripts/boskos.py --release >> "$ARTIFACTS/logs/boskos.log" 2>&1
135153

136-
exit ${exit_code}
154+
exit ${exit_code}

0 commit comments

Comments
 (0)