Commit c901ded6 authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-53 Created Ansible role for service vm.

parent 32fa0262
python needs to be installed.
Doesn't use virtual env.
[service-vms]
lod-service
../roles/
\ No newline at end of file
---
- name: Install Django using Pip.
pip: name=Django
- name: Install Django connector for PostgreSQL.
pip: name=psycopg2
---
- name: Download Django code from Github.
git: repo=https://github.com/gouzouni625/okeanos-LoD.git dest=/root/okeanos-LoD
---
- name: Upgrade packages.
apt: upgrade=dist update_cache=yes
- name: Install Python Pip.
apt: name=python-pip state=latest
- name: Include django-install tasks.
include: django-install.yml
- name: Include github tasks.
include: github.yml
- name: Include postgresql-install tasks.
include: postgresql-install.yml
---
- name: Install PosgreSQL.
apt: name=postgresql state=latest
- name: Install PostgreSQL header files.
apt: name=libpd-dev state=latest
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment