Commit 8806f9d6 by Ben Patterson

move venv to subdir and activate it.

parent 5b427026
......@@ -10,3 +10,4 @@ harprofiler_user: "harprofiler"
harprofiler_github_url: https://github.com/cgoldberg/harprofiler
harprofiler_version: 2958a910cc0c33967f7d7faf4519fa03271fdaf1
harprofiler_dir: /edx/app/harprofiler
harprofiler_venv_dir: "{{ harprofiler_dir }}/venvs/harprofiler"
......@@ -27,7 +27,7 @@
- name: install requirements
pip: >
requirements="{{ harprofiler_dir }}/requirements.txt" virtualenv="{{ harprofiler_dir }}/venv"
requirements="{{ harprofiler_dir }}/requirements.txt" virtualenv="{{ harprofiler_venv_dir }}"
sudo_user: "{{ harprofiler_user }}"
- name: update config file
......@@ -38,3 +38,10 @@
regexp="browsermob_dir"
line="browsermob_dir: /usr/local"
state=present
- name: verify harprofiler works
shell: >
python harprofiler.py
chdir="{{ harprofiler_dir }}"
executable=/bin/bash
sudo_user: "{{ harprofiler_user }}"
export DISPLAY=:1
source {{ harprofiler_venv_dir }}/bin/activate
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment