2016-06-30 17:50:11 -05:00
|
|
|
---
|
2016-07-13 15:23:50 -05:00
|
|
|
- name: ensure canonical partner repo is in apt sources.list
|
|
|
|
apt_repository: repo='deb http://archive.canonical.com/ubuntu trusty partner'
|
|
|
|
state=present
|
|
|
|
become: true
|
2016-10-14 13:47:54 -07:00
|
|
|
- apt: update_cache=yes
|
|
|
|
become: true
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: ensure required packages are installed
|
|
|
|
become: true
|
|
|
|
apt: name={{item}} state=present
|
|
|
|
with_items:
|
2016-10-13 17:21:55 -07:00
|
|
|
- vnc4server
|
|
|
|
- chromium-browser
|
|
|
|
- xfonts-base
|
|
|
|
- fonts-arphic-bkai00mp
|
|
|
|
- fonts-arphic-bsmi00lp
|
|
|
|
- fonts-arphic-gbsn00lp
|
|
|
|
- fonts-arphic-gkai00mp
|
|
|
|
- fonts-arphic-ukai
|
|
|
|
- fonts-farsiweb
|
|
|
|
- fonts-nafees
|
|
|
|
- fonts-sil-abyssinica
|
|
|
|
- fonts-sil-ezra
|
|
|
|
- fonts-sil-padauk
|
|
|
|
- fonts-unfonts-extra
|
|
|
|
- fonts-unfonts-core
|
|
|
|
- ttf-indic-fonts
|
|
|
|
- fonts-thai-tlwg
|
|
|
|
- fonts-lklug-sinhala
|
|
|
|
- git
|
|
|
|
- libjpeg-turbo8-dev
|
|
|
|
- zlib1g-dev
|
|
|
|
- gcc
|
2016-11-08 13:31:52 -08:00
|
|
|
- g++
|
2016-10-13 17:21:55 -07:00
|
|
|
- libpython3.4-dev
|
|
|
|
- adobe-flashplugin
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: install Xvnc upstart config /etc/init/Xvnc.conf
|
|
|
|
template: src=templates/Xvnc.conf.j2 dest=/etc/init/Xvnc.conf
|
|
|
|
become: true
|
|
|
|
notify:
|
2016-10-13 17:21:55 -07:00
|
|
|
- restart Xvnc
|
|
|
|
- name: mkdir {{venv_root}}/websockify-ve34
|
|
|
|
become: true
|
|
|
|
file: path={{venv_root}}/websockify-ve34 state=directory owner={{user}}
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: install websockify in virtualenv
|
|
|
|
pip: name=git+https://github.com/kanaka/websockify.git#egg=websockify
|
2016-10-13 17:21:55 -07:00
|
|
|
virtualenv={{venv_root}}/websockify-ve34
|
2016-06-30 17:50:11 -05:00
|
|
|
virtualenv_python=python3.4
|
2016-10-17 18:24:44 -07:00
|
|
|
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
|
2016-10-13 17:21:55 -07:00
|
|
|
become: true
|
|
|
|
become_user: '{{user}}'
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: install vnc-websock upstart config /etc/init/vnc-websock.conf
|
|
|
|
template: src=templates/vnc-websock.conf.j2 dest=/etc/init/vnc-websock.conf
|
|
|
|
become: true
|
|
|
|
notify:
|
2016-10-13 17:21:55 -07:00
|
|
|
- restart vnc-websock
|
|
|
|
- name: mkdir {{venv_root}}/brozzler-ve34
|
|
|
|
become: true
|
|
|
|
file: path={{venv_root}}/brozzler-ve34 state=directory owner={{user}}
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: install brozzler in virtualenv
|
2016-07-01 15:45:39 -05:00
|
|
|
pip: # name=git+https://github.com/internetarchive/brozzler.git#egg=brozzler
|
2016-10-13 17:21:55 -07:00
|
|
|
name='{{brozzler_pip_name}}'
|
|
|
|
virtualenv={{venv_root}}/brozzler-ve34
|
2016-06-30 17:50:11 -05:00
|
|
|
virtualenv_python=python3.4
|
2016-10-17 18:24:44 -07:00
|
|
|
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
|
2016-10-13 17:21:55 -07:00
|
|
|
become: true
|
|
|
|
become_user: '{{user}}'
|
2016-06-30 17:50:11 -05:00
|
|
|
notify:
|
2016-10-13 17:21:55 -07:00
|
|
|
- restart brozzler-worker
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: install brozzler-worker upstart config /etc/init/brozzler-worker.conf
|
|
|
|
template: src=templates/brozzler-worker.conf.j2 dest=/etc/init/brozzler-worker.conf
|
|
|
|
become: true
|
|
|
|
notify:
|
2016-10-13 17:21:55 -07:00
|
|
|
- restart brozzler-worker
|