From: Guillaume Abrioux Date: Thu, 11 Oct 2018 12:51:00 +0000 (+0200) Subject: ceph-ansible: install expected ansible version X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b3ed2011b083be5f06aad6fe1e28ca297a27a331;p=ceph-build.git ceph-ansible: install expected ansible version install the ansible version corresponding to its respective ceph-ansible ansible. Signed-off-by: Guillaume Abrioux --- 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[@]"