Noah Levitt 18b4a26db6 porting ansible config to xenial
no more upstart, switch to daemontools, among other things
2019-03-22 23:50:46 -07:00

41 lines
1019 B
YAML

---
- name: ensure required packages are installed
become: true
apt: name={{item}} state=present
with_items:
- gcc
- python3-dev
- libffi-dev
- libssl-dev
- tor
- git
- name: mkdir {{venv_root}}/warcprox-ve3
become: true
file: path={{venv_root}}/warcprox-ve3 state=directory owner={{user}}
- name: install warcprox in virtualenv
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
become: true
become_user: '{{user}}'
notify:
- restart warcprox
- name: mkdir /etc/service/warcprox
file:
path: /etc/service/warcprox
state: directory
become: true
- name: install /etc/service/warcprox/run
template:
src: templates/run.j2
dest: /etc/service/warcprox/run
mode: 0755
notify:
- restart warcprox
become: true