From dc27a9c2159f51ebe71553b4ff36cecb10fe9d79 Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Sun, 18 Aug 2024 10:07:33 +0200 Subject: [PATCH] M #-: Adjust ansible version --- minione | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minione b/minione index 78c4576..f17de8c 100755 --- a/minione +++ b/minione @@ -1141,10 +1141,10 @@ check "type -t $PIP >/dev/null" "Checking ${PYTHON_PIP} is installed" 1 \ if type -t ansible >/dev/null; then ANSIBLE_VERSION=$(ansible --version | head -1 | tr -cd '[:digit:]' | cut -c 1-3) - check "[[ \"$ANSIBLE_VERSION\" =~ \"216\" ]]" "Checking ansible version (2.16.*)" + check "[ $ANSIBLE_VERSION -ge 215 ]" "Checking ansible version (2.15+)" 1 \ + "SKIP will try to install" || MISSING_PIP_PKGS="'ansible==8.7.0'" else - check "false" "Checking ansible" 1 "SKIP will try to install" || - MISSING_PIP_PKGS="'ansible==9.9.0'" + check "false" "Checking ansible" 1 "SKIP will try to install" || MISSING_PIP_PKGS="'ansible==8.7.0'" fi if type -t terraform >/dev/null; then