]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: install expected ansible version 1153/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 11 Oct 2018 12:51:00 +0000 (14:51 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 11 Oct 2018 13:58:15 +0000 (15:58 +0200)
install the ansible version corresponding to its respective ceph-ansible
ansible.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index 371948382287495443ba7b0f462cdab8440dc357..4d5814c89d8aa216ca657eb360c0da993284828b 100644 (file)
@@ -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[@]"