Fix periodic job

There was a version mismath beween python libraries installed
by apt and the ones by pip. So use a virtual environment to
install DIB.

Change-Id: Ia00a79b5dbc61947e1f37c11de9a7f3bb9dddd8a
This commit is contained in:
German Eichberger 2018-05-07 12:55:09 -07:00
parent f33c461cb9
commit 6ebb0d58a6
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
pip:
name: "{{ item }}"
state: "latest"
virtualenv: /var/tmp/venv
register: install_packages
until: install_packages|success
retries: 5
@ -35,6 +36,7 @@
state: directory
- name: Build an amphora image for publishing
shell: >-
. /var/tmp/venv/bin/activate && \
./diskimage-create.sh -o {{ ansible_user_dir }}/test-images/test-only-amphora-x64-haproxy-{{ amphora_os }}-{{ amphora_os_release }}.qcow2 \
-i {{ amphora_os }} \
-d {{ amphora_os_release }} \