Created
January 4, 2018 14:31
-
-
Save johanvdw/b524df3c0f348e40e54a72ac21b84f36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: c3nav | |
become: yes | |
tasks: | |
- name: Install git | |
apt: | |
name: git | |
update_cache: yes | |
- name: Install header files for different packages | |
apt: | |
name: libgeos-dev,librsvg2-bin,libagg-dev,libpng-dev,build-essential,libfreetype6-dev,libqhull-dev,pkg-config,libjpeg-dev,libatlas-base-dev,libmemcached-dev | |
- name: Install python3.6 + extra packages | |
apt: | |
name: python3.6,python3.6-venv,python-pip,virtualenv,python3.6-dev | |
- name: clone c3nav repo | |
git: | |
repo: https://github.com/c3nav/c3nav.git | |
dest: /c3nav | |
- name: Create virtualenv | |
pip: | |
requirements: /c3nav/src/requirements/production.txt | |
virtualenv_python: python3.6 | |
virtualenv: /c3nav/env | |
- name: virtualenv - tileserver | |
pip: | |
requirements: /c3nav/src/requirements-tileserver.txt | |
virtualenv_python: python3.6 | |
virtualenv: /c3nav/env | |
- name: virtualenv - dev | |
pip: | |
requirements: /c3nav/src/requirements/dev.txt | |
virtualenv_python: python3.6 | |
virtualenv: /c3nav/env | |
- name: install gunicorn with pip | |
pip: | |
name: gunicorn | |
virtualenv_python: python3.6 | |
virtualenv: /c3nav/env | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment