Skip to content

Commit

Permalink
M #-: Bump ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel committed Aug 17, 2024
1 parent fef3a4e commit d35d6e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions minione
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d35d6e8

Please sign in to comment.