From faa4145d657593a69bae1c45480b7b6e2f1f90e8 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Thu, 30 Mar 2023 17:53:29 -0500 Subject: [PATCH] mongodb - lockout RasPiOS-32bit --- roles/mongodb/tasks/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/roles/mongodb/tasks/main.yml b/roles/mongodb/tasks/main.yml index 748493c68..4403bed93 100644 --- a/roles/mongodb/tasks/main.yml +++ b/roles/mongodb/tasks/main.yml @@ -34,19 +34,19 @@ var: is_debian - debug: var: is_raspbian - -# # might be able to lift this once we know using bionic would work -# - name: EXIT 'mongodb' ROLE & CONTINUE, IF 'is_debian_10 and aarch64 and not is_raspbian' i.e. TRUE DEBIAN with arch64 -# fail: # FORCE IT RED THIS ONCE! -# msg: ATTEMPTED MongoDB INSTALLATION WITH (TRUE) DEBIAN aarch64, which is not supported upstream. Nevertheless IIAB will continue (consider this a warning!) -# when: (ansible_architecture == "aarch64") and is_debian_10 and not is_raspbian -# ignore_errors: yes - -# ELSE... - +- debug: + var: dpkg_arch +- debug: + var: mongodb_version - block: + - name: EXIT 'mongodb' ROLE & CONTINUE, when 32bit RasPiOS is in use or 'unsupported' + fail: # FORCE IT RED THIS ONCE! + msg: ATTEMPTED MongoDB INSTALLATION WITH 32bit RasPiOS, which is not supported upstream. Nevertheless IIAB will continue (consider this a warning!) + when: (mongodb_version == "unsupported") or (dpkg_arch == "armhf") + +# ELSE... - name: Install MongoDB if 'mongodb_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml include_tasks: install.yml when: mongodb_installed is undefined