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
|
2019-03-19 16:37:13 -07:00
|
|
|
- python3-dev
|
2016-09-14 17:08:00 -07:00
|
|
|
- libffi-dev
|
|
|
|
- libssl-dev
|
|
|
|
- tor
|
|
|
|
- git
|
2019-03-19 16:37:13 -07:00
|
|
|
- name: mkdir {{venv_root}}/warcprox-ve3
|
2016-10-13 17:21:55 -07:00
|
|
|
become: true
|
2019-03-19 16:37:13 -07:00
|
|
|
file: path={{venv_root}}/warcprox-ve3 state=directory owner={{user}}
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: install warcprox in virtualenv
|
2019-03-22 23:50:46 -07:00
|
|
|
pip:
|
|
|
|
name: git+https://github.com/internetarchive/warcprox.git#egg=warcprox
|
|
|
|
virtualenv: '{{venv_root}}/warcprox-ve3'
|
|
|
|
virtualenv_python: python3
|
|
|
|
extra_args: --no-input --upgrade --pre --cache-dir=/tmp/pip-cache
|
|
|
|
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
|
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
|
2019-03-22 23:50:46 -07:00
|
|
|
|
|
|
|
- name: mkdir /etc/service/warcprox
|
|
|
|
file:
|
|
|
|
path: /etc/service/warcprox
|
|
|
|
state: directory
|
2016-06-30 17:50:11 -05:00
|
|
|
become: true
|
2019-03-22 23:50:46 -07:00
|
|
|
|
|
|
|
- name: install /etc/service/warcprox/run
|
|
|
|
template:
|
|
|
|
src: templates/run.j2
|
|
|
|
dest: /etc/service/warcprox/run
|
|
|
|
mode: 0755
|
2016-06-30 17:50:11 -05:00
|
|
|
notify:
|
2016-09-14 17:08:00 -07:00
|
|
|
- restart warcprox
|
2019-03-22 23:50:46 -07:00
|
|
|
become: true
|