From c357066a9d2d32d9e78214135538835c18c07c20 Mon Sep 17 00:00:00 2001 From: David Moreau-Simard Date: Fri, 25 Aug 2017 10:00:54 -0400 Subject: [PATCH] Export ANSIBLE_CONFIG so we can make sure it's used by Ansible Ansible will read the configuration file found at ANSIBLE_CONFIG automatically, regardless of location. This ensures that scripts that run in the same context as devstack-vm-gate-wrap.sh inherit from the same Ansible configuration. This fixes the fact that network overlay playbook runs were missing from the ARA report as they were running from "devstack-vm-gate.sh". Change-Id: I53c30bc72477671f38b04f0331862e2bbfaed4d2 --- devstack-vm-gate-wrap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index bf1a64f0..80bd72f7 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -482,6 +482,7 @@ virtualenv /tmp/ansible devstack-tools==$DSTOOLS_VERSION ara export ANSIBLE=/tmp/ansible/bin/ansible export ANSIBLE_PLAYBOOK=/tmp/ansible/bin/ansible-playbook +export ANSIBLE_CONFIG="$WORKSPACE/ansible.cfg" export DSCONF=/tmp/ansible/bin/dsconf # Write inventory file with groupings @@ -496,7 +497,7 @@ for SUBNODE in $SUBNODES ; do done # Write ansible config file -cat > "$WORKSPACE/ansible.cfg" < $ANSIBLE_CONFIG <