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() {
41
41
}
42
42
trap cleanup EXIT
43
43
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
+
44
62
apt-get update
45
63
apt-get install -y python3-requests ansible
46
64
Original file line number Diff line number Diff line change @@ -41,6 +41,24 @@ cleanup() {
41
41
}
42
42
trap cleanup EXIT
43
43
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
+
44
62
apt-get update
45
63
apt-get install -y python3-requests ansible
46
64
Original file line number Diff line number Diff line change @@ -42,6 +42,24 @@ cleanup() {
42
42
}
43
43
trap cleanup EXIT
44
44
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
+
45
63
apt-get update
46
64
apt-get install -y python3-requests ansible
47
65
@@ -133,4 +151,4 @@ scp -i ~/.ssh/google_compute_engine \
133
151
# If Boskos is being used then release the resource back to Boskos.
134
152
[ -z " ${BOSKOS_HOST:- } " ] || python3 tests/scripts/boskos.py --release >> " $ARTIFACTS /logs/boskos.log" 2>&1
135
153
136
- exit ${exit_code}
154
+ exit ${exit_code}
You can’t perform that action at this time.
0 commit comments