Skip to content

Commit

Permalink
M #-: Adjust ansible version
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel committed Aug 18, 2024
1 parent bdce737 commit dc27a9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minione
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc27a9c

Please sign in to comment.