2016-06-30 17:50:11 -05:00
|
|
|
---
|
|
|
|
- name: ensure required packages are installed
|
|
|
|
become: true
|
|
|
|
apt: name={{item}} state=present
|
|
|
|
with_items:
|
2016-09-14 17:08:00 -07:00
|
|
|
- gcc
|
|
|
|
- python3.4
|
|
|
|
- libpython3.4-dev
|
|
|
|
- libffi-dev
|
|
|
|
- libssl-dev
|
|
|
|
- tor
|
|
|
|
- git
|
2016-10-13 17:21:55 -07:00
|
|
|
- name: mkdir {{venv_root}}/warcprox-ve34
|
|
|
|
become: true
|
|
|
|
file: path={{venv_root}}/warcprox-ve34 state=directory owner={{user}}
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: install warcprox in virtualenv
|
2016-12-07 09:33:06 -08:00
|
|
|
pip: name=git+https://github.com/internetarchive/warcprox.git#egg=warcprox
|
2016-10-13 17:21:55 -07:00
|
|
|
virtualenv={{venv_root}}/warcprox-ve34
|
2016-06-30 17:50:11 -05:00
|
|
|
virtualenv_python=python3.4
|
2016-10-17 18:24:44 -07:00
|
|
|
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
|
2016-10-13 17:21:55 -07:00
|
|
|
become: true
|
|
|
|
become_user: '{{user}}'
|
2016-06-30 17:50:11 -05:00
|
|
|
notify:
|
2016-09-14 17:08:00 -07:00
|
|
|
- restart warcprox
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: install upstart config /etc/init/warcprox.conf
|
|
|
|
become: true
|
|
|
|
template: src=templates/warcprox.conf.j2 dest=/etc/init/warcprox.conf
|
|
|
|
notify:
|
2016-09-14 17:08:00 -07:00
|
|
|
- restart warcprox
|