File tree Expand file tree Collapse file tree 3 files changed +55
-1
lines changed
Expand file tree Collapse file tree 3 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,24 @@ cleanup() {
4141}
4242trap 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+
4462apt-get update
4563apt-get install -y python3-requests ansible
4664
Original file line number Diff line number Diff line change @@ -41,6 +41,24 @@ cleanup() {
4141}
4242trap 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+
4462apt-get update
4563apt-get install -y python3-requests ansible
4664
Original file line number Diff line number Diff line change @@ -42,6 +42,24 @@ cleanup() {
4242}
4343trap 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+
4563apt-get update
4664apt-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}
You can’t perform that action at this time.
0 commit comments