--- - 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 - name: ensure required packages are installed become: true apt: name={{item}} state=present with_items: - python-virtualenv - 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 - libpython3.4-dev - adobe-flashplugin - name: install Xvnc upstart config /etc/init/Xvnc.conf template: src=templates/Xvnc.conf.j2 dest=/etc/init/Xvnc.conf become: true notify: - restart Xvnc - name: mkdir {{venv_root}}/websockify-ve34 become: true file: path={{venv_root}}/websockify-ve34 state=directory owner={{user}} - name: install websockify in virtualenv pip: name=git+https://github.com/kanaka/websockify.git#egg=websockify virtualenv={{venv_root}}/websockify-ve34 virtualenv_python=python3.4 extra_args='--no-input --upgrade --pre' become: true become_user: '{{user}}' - 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: - restart vnc-websock - name: mkdir {{venv_root}}/brozzler-ve34 become: true file: path={{venv_root}}/brozzler-ve34 state=directory owner={{user}} - name: install brozzler in virtualenv pip: # name=git+https://github.com/internetarchive/brozzler.git#egg=brozzler name='{{brozzler_pip_name}}' virtualenv={{venv_root}}/brozzler-ve34 virtualenv_python=python3.4 extra_args='--no-input --upgrade --pre' become: true become_user: '{{user}}' notify: - restart brozzler-worker - 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: - restart brozzler-worker