From d35d6e8d0bab0b0697a0ea8cf7bbef79441adbc7 Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Sat, 17 Aug 2024 19:46:15 +0200 Subject: [PATCH] M #-: Bump ansible --- minione | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/minione b/minione index 8816c3e..e7a59f6 100755 --- a/minione +++ b/minione @@ -1136,8 +1136,8 @@ check "type -t $PIP >/dev/null" "Checking ${PYTHON_PIP} is installed" 1 \ "SKIP will try to install" || MISSING_PKGS="${MISSING_PKGS} ${PYTHON_PIP}" if type -t ansible >/dev/null; then - ANSIBLE_VERSION=$(ansible --version | head -1 | tr -cd '[:digit:]' | cut -c 1,2) - check "[[ \"$ANSIBLE_VERSION\" =~ \"29\" ]]" "Checking ansible version (2.9.*)" + ANSIBLE_VERSION=$(ansible --version | head -1 | tr -cd '[:digit:]' | cut -c 1-3) + check "[[ \"$ANSIBLE_VERSION\" =~ \"216\" ]]" "Checking ansible version (2.16.*)" else check "false" "Checking ansible" 1 "SKIP will try to install" || MISSING_PIP_PKGS="'ansible==2.9.9'" @@ -1196,6 +1196,8 @@ debian && check "apt-get -q -y update >/dev/null" "Updating APT cache" [[ "${DISABLE_SELINUX}" = 'yes' ]] && check "disable_selinux" "Disabling SELinux" [[ -n "${MISSING_PKGS}" ]] && check "install_pkg ${MISSING_PKGS}" "Install ${MISSING_PKGS}" 3 if [[ -n "${MISSING_PIP_PKGS}" ]]; then + # it's evaluation tool, we can do ugly things + export PIP_BREAK_SYSTEM_PACKAGES=1 check "$PIP install --upgrade pip" "Updating PIP" check "$PIP install ${MISSING_PIP_PKGS}" \ "Install from PyPI ${MISSING_PIP_PKGS}" 3