install the ansible version corresponding to its respective ceph-ansible
ansible.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
# 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[@]"