Skip to content

Commit

Permalink
Merge pull request #3634 from holta/apt_install_ansible-core_on_32-bit
Browse files Browse the repository at this point in the history
scripts/ansible: Evaluate 'apt install ansible-core' on "32-bit" RasPiOS 12 Bookworm
  • Loading branch information
holta committed Sep 8, 2023
2 parents 2326d3a + f363494 commit 8821ea4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/ansible
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,13 @@ echo -e "\napt update; apt install python3-venv"
$APT_PATH/apt update
$APT_PATH/apt -y install python3-venv

if [[ $(dpkg --print-architecture) == i386 ]]; then
# 2023-09-08 PR #3634: 'apt install ansible-core' is overweight, but works on
# "32-bit" RasPiOS 12 (@EMG70 set 'arm_64bit=0' in /boot/config.txt per #3516
# to force boot its 32-bit kernel; its 64-bit kernel should work too!)
# IN SHORT: This ugly hack appears sufficient for all "32-bit" Bookworm+ OS's
# (similar to 32-bit Debian 12 on AMD/Intel a month ago, i.e. PR #3617).
if ! dpkg --print-architecture | grep -q 64 && ! grep -q 11 /etc/debian_version; then
#if [[ $(dpkg --print-architecture) == i386 ]]; then
# 2023-08-10: Quick+Dirty (BRUTE FORCE) on legacy 32-bit i386 avoids #3547
# rust/wheels/cryptography compiling mess! DEBIAN 12+ OR SIMILAR REQUIRED!
$APT_PATH/apt -y install ansible-core # Bookworm ~= ansible-core 2.14.3
Expand Down

0 comments on commit 8821ea4

Please sign in to comment.