Commit 9436205f by Calen Pennington

Use a subdirectory for the harprofiler source code

parent f458a3c0
......@@ -23,7 +23,7 @@
- name: check out the harprofiler
git:
dest: "{{ harprofiler_dir }}"
dest: "{{ harprofiler_dir }}/harprofiler"
repo: "{{ harprofiler_github_url }}"
version: "{{ harprofiler_version }}"
accept_hostkey: yes
......@@ -54,7 +54,7 @@
- name: install requirements
pip:
requirements: "{{ harprofiler_dir }}/requirements.txt"
requirements: "{{ harprofiler_dir }}/harprofiler/requirements.txt"
virtualenv: "{{ harprofiler_venv_dir }}"
sudo_user: "{{ harprofiler_user }}"
tags:
......@@ -65,7 +65,7 @@
# harprofiler ships with a default config file. Doing a line-replace for the default
# configuration that does not match what this machine will have
lineinfile:
dest: "{{ harprofiler_dir }}/config.yaml"
dest: "{{ harprofiler_dir }}/harprofiler/config.yaml"
regexp: "browsermob_dir"
line: "browsermob_dir: {{ harprofiler_browsermob_dir }}"
state: present
......
......@@ -4,6 +4,6 @@
# This script confirms that harprofiler can successfully run on the
# target machine.
source {{ harprofiler_venv_dir }}/bin/activate
cd {{ harprofiler_dir }}
cd {{ harprofiler_dir }}/harprofiler
python harprofiler.py
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