From 15da2784d6aa2b5aca682b406a6a697c7821c322 Mon Sep 17 00:00:00 2001 From: A Holt Date: Sat, 6 Nov 2021 16:45:04 -0400 Subject: [PATCH] scripts/ansible: TEMPORARY support for RasPiOS Buster's Python 3.7 --- scripts/ansible | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ansible b/scripts/ansible index 2baf575fc..445b24e04 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -172,7 +172,11 @@ $APT_PATH/apt -y install python3-pip # https://stackoverflow.com/questions/9510474/removing-pips-cache/61762308#61762308 pip config set global.cache-dir false echo -e "\n\n'pip3 install --upgrade ansible-core' will now run:\n" -pip3 install --upgrade ansible-core +if grep -qr buster /etc/apt; then + pip3 install --upgrade ansible-core==2.11.6 # TEMPORARY support for RasPiOS Buster's Python 3.7 +else + pip3 install --upgrade ansible-core # ansible-core 2.12 (ETA 2021-11-08) requires Python >= 3.8 +fi # (Re)running collection installs appears safe, with --force-with-deps to force # upgrade of collection and dependencies it pulls in. Note Ansible may support