Be explicit about ansible version

We should be specific about the ansible version we use devstack-gate
to ensure we don't randomly get broken by upstream releases. This ends
up effectively self testing when we bump it.

Change-Id: Ic24fa317d9cabf91b1bf6a3da18a151ce21bcdba
This commit is contained in:
Sean Dague
2016-02-25 06:34:25 -05:00
parent 94964b4eb0
commit 16444e2931

View File

@@ -25,6 +25,11 @@
GIT_BASE=${GIT_BASE:-https://git.openstack.org}
GIT_BRANCH=${GIT_BRANCH:-master}
# We're using enough ansible specific features that it's extremely
# possible that new ansible releases can break us. As such we should
# be very deliberate about which ansible we use.
ANSIBLE_VERSION=${ANSIBLE_VERSION:-2.0.0.2}
# sshd may have been compiled with a default path excluding */sbin
export PATH=$PATH:/usr/local/sbin:/usr/sbin
@@ -429,7 +434,7 @@ set -x
# Install ansible
sudo -H pip install virtualenv
virtualenv /tmp/ansible
/tmp/ansible/bin/pip install ansible
/tmp/ansible/bin/pip install ansible==$ANSIBLE_VERSION
export ANSIBLE=/tmp/ansible/bin/ansible
# Write inventory file with groupings