mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
30 lines
849 B
YAML
30 lines
849 B
YAML
---
|
|
- name: ensure required packages are installed
|
|
become: true
|
|
apt: name={{item}} state=present
|
|
with_items:
|
|
- gcc
|
|
- python3.4
|
|
- libpython3.4-dev
|
|
- libffi-dev
|
|
- libssl-dev
|
|
- tor
|
|
- git
|
|
- name: mkdir {{venv_root}}/warcprox-ve34
|
|
become: true
|
|
file: path={{venv_root}}/warcprox-ve34 state=directory owner={{user}}
|
|
- name: install warcprox in virtualenv
|
|
pip: name=git+https://github.com/internetarchive/warcprox.git#egg=warcprox
|
|
virtualenv={{venv_root}}/warcprox-ve34
|
|
virtualenv_python=python3.4
|
|
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
|
|
become: true
|
|
become_user: '{{user}}'
|
|
notify:
|
|
- restart warcprox
|
|
- name: install upstart config /etc/init/warcprox.conf
|
|
become: true
|
|
template: src=templates/warcprox.conf.j2 dest=/etc/init/warcprox.conf
|
|
notify:
|
|
- restart warcprox
|