forked from tstowe/GlobalAvgTemperatures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
44 lines (33 loc) · 1.17 KB
/
playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
- hosts: web
become: yes
become_method: sudo
vars_files:
- vars.yml
gather_facts: false
tasks:
- name: Install required system packages
apt: pkg={{ item }} state=installed update-cache=yes
with_items: "{{ system_packages }}"
- name: Install required Python packages
pip: name={{ item }}
with_items: "{{ python_packages }}"
- name: Install libffi package
apt: name=libffi-dev state=present
- name: Copy caravel-config to PYTHONPATH 1
command: cp /vagrant/common/files/caravel_config.py /usr/lib/python2.7/
- name: Clone git repository
git: >
dest=/var/www/caravel
repo=https://github.com/airbnb/caravel.git
update=no
- name: Install caravel
pip: name=caravel state=present
- name: Create default admin user
command: fabmanager create-admin --username admin --firstname admin --lastname user --email [email protected] --password password --app caravel
- name: Initialize database for caravel
command: caravel db upgrade
- name: Create default roles
command: caravel init
# - name: Run server
# command: caravel runserver