Commit 9436205f by Calen Pennington

Use a subdirectory for the harprofiler source code

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