From b3ed2011b083be5f06aad6fe1e28ca297a27a331 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 11 Oct 2018 14:51:00 +0200 Subject: [PATCH] ceph-ansible: install expected ansible version install the ansible version corresponding to its respective ceph-ansible ansible. Signed-off-by: Guillaume Abrioux --- ceph-ansible-pr-syntax-check/build/build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ceph-ansible-pr-syntax-check/build/build b/ceph-ansible-pr-syntax-check/build/build index 37194838..4d5814c8 100644 --- a/ceph-ansible-pr-syntax-check/build/build +++ b/ceph-ansible-pr-syntax-check/build/build @@ -4,7 +4,11 @@ set -e # the following two methods exist in scripts/build_utils.sh # shellcheck disable=SC2034 -pkgs=( "ansible" "ansible-lint" ) +pkgs=( "ansible-lint" ) +# force virtualenv to be created earlier for this occurence, so we are not stuck because of ansible-lint dependencie, +# which would enforce latest ansible version to be installed. +virtualenv $TEMPVENV +"$VENV"/bin/pip install -r <(grep ansible "$WORKSPACE"/tests/requirements.txt) install_python_packages "pkgs[@]" -- 2.39.5