mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
---
|
|
- name: mkdir {{venv_root}}/pywb-ve3
|
|
file: path={{venv_root}}/pywb-ve3 state=directory
|
|
owner={{user}}
|
|
become: true
|
|
|
|
- name: install pywb in virtualenv
|
|
pip:
|
|
name: pywb
|
|
version: 0.33.2
|
|
virtualenv: '{{venv_root}}/pywb-ve3'
|
|
virtualenv_python: python3
|
|
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
|
|
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
|
|
become: true
|
|
become_user: '{{user}}'
|
|
notify:
|
|
- restart pywb
|
|
|
|
- name: install brozzler in pywb virtualenv
|
|
pip:
|
|
name: '{{brozzler_pip_name}}'
|
|
virtualenv: '{{venv_root}}/pywb-ve3'
|
|
virtualenv_python: python3
|
|
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
|
|
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
|
|
become: true
|
|
become_user: '{{user}}'
|
|
notify:
|
|
- restart pywb
|
|
|
|
- name: pywb config file /etc/pywb.yml
|
|
template: src=templates/pywb.yml.j2
|
|
dest=/etc/pywb.yml
|
|
become: true
|
|
notify:
|
|
- restart pywb
|
|
|
|
- name: mkdir /etc/service/pywb
|
|
file:
|
|
path: /etc/service/pywb
|
|
state: directory
|
|
become: true
|
|
|
|
- name: install /etc/service/pywb/run
|
|
template:
|
|
src: templates/pywb-run.j2
|
|
dest: /etc/service/pywb/run
|
|
mode: 0755
|
|
notify:
|
|
- restart pywb
|
|
become: true
|