Make sure virtualenv is installed

Change-Id: Icac8b42f6b29612f18e00d7e45f18da4e595d6e2
This commit is contained in:
Tim Kuhlman 2015-05-01 10:48:29 -06:00
parent 79b71db02e
commit 6b267c0040
2 changed files with 5 additions and 1 deletions

View File

@ -35,6 +35,8 @@
- name: apt-get update
apt: update_cache=yes
ignore_errors: true
- name: Install virtualenv
apt: name=python-virtualenv
tasks:
- name: Setup the monasca cli credentials in the default environment
copy: src=tests/env.sh dest=/etc/profile.d/monasca_cli.sh owner=root group=root mode=0644

View File

@ -12,6 +12,8 @@
pre_tasks:
- name: apt-get update
apt: update_cache=yes
- name: Install virtualenv
apt: name=python-virtualenv
tasks:
- name: Install postfix, needed by notification engine
apt: name=postfix state=present
@ -71,7 +73,7 @@
tags:
- cli
- name: Update cli
pip: name=python-monascaclient state=latest
pip: name=python-monascaclient state=latest virtualenv="{{monasca_virtualenv_dir}}"
tags:
- cli
roles: