mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-04 04:24:27 -04:00
porting ansible config to xenial
no more upstart, switch to daemontools, among other things
This commit is contained in:
parent
19522aff85
commit
18b4a26db6
26 changed files with 289 additions and 182 deletions
|
@ -3,18 +3,31 @@
|
|||
file: path={{venv_root}}/brozzler-dashboard-ve3 state=directory
|
||||
owner={{user}}
|
||||
become: true
|
||||
|
||||
- name: install brozzler[dashboard] in virtualenv
|
||||
pip: name='{{brozzler_pip_name}}[dashboard]'
|
||||
virtualenv={{venv_root}}/brozzler-dashboard-ve3
|
||||
virtualenv_python=python3
|
||||
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
|
||||
pip:
|
||||
name: '{{brozzler_pip_name}}[dashboard]'
|
||||
virtualenv: '{{venv_root}}/brozzler-dashboard-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 brozzler-dashboard
|
||||
- name: install upstart config /etc/init/brozzler-dashboard.conf
|
||||
|
||||
- name: mkdir /etc/service/brozzler-dashboard
|
||||
file:
|
||||
path: /etc/service/brozzler-dashboard
|
||||
state: directory
|
||||
become: true
|
||||
template: src=templates/brozzler-dashboard.conf.j2
|
||||
dest=/etc/init/brozzler-dashboard.conf
|
||||
|
||||
- name: install /etc/service/brozzler-dashboard/run
|
||||
template:
|
||||
src: templates/brozzler-dashboard-run.j2
|
||||
dest: /etc/service/brozzler-dashboard/run
|
||||
mode: 0755
|
||||
notify:
|
||||
- restart brozzler-dashboard
|
||||
become: true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue