From 16444e2931ae8d52d42345ca0b59d20667da21b0 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 25 Feb 2016 06:34:25 -0500 Subject: [PATCH] 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 --- devstack-vm-gate-wrap.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index f74e1ece..e62b1256 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -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