From 9e262a224f3aac15db052a556f30d4299ad65c33 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Wed, 8 Nov 2017 11:09:57 +0200 Subject: [PATCH] Create a temporary venv for Ansible Fixes: #190 --- jjb/install-rhel7.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jjb/install-rhel7.yaml b/jjb/install-rhel7.yaml index 12ed3d6..721fb28 100644 --- a/jjb/install-rhel7.yaml +++ b/jjb/install-rhel7.yaml @@ -31,9 +31,15 @@ builders: - shell: | #!/bin/bash -ex + virtualenv ansible.venv && source ansible.venv/bin/activate + pip install --upgrade setuptools pip + pip install 'ansible==2.4.1.0' + export PYTHONUNBUFFERED=1 # Enable real-time output for Ansible ansible-playbook -i localhost, -c local \ "${WORKSPACE}/cinch/cinch/playbooks/install-rhel7.yml" \ -e delete_venv="${DELETE_VENV}" \ -e latest_tip="${LATEST_TIP}" \ -e beaker_kerberos="${BEAKER_KERBEROS}" + + deactivate