-
Notifications
You must be signed in to change notification settings - Fork 0
/
backend.yml
executable file
·66 lines (59 loc) · 1.52 KB
/
backend.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env ansible-playbook
---
- hosts: backend
tasks:
- name: include version vars
include_vars:
file: backend-vars.yml
- name: Install machine tools
import_role:
name: machine
vars:
role_spec: {}
- name: Install and setup Docker
import_role:
name: docker
vars:
role_spec: {}
- name: Install Redis
import_role:
name: redis
vars:
role_spec: {}
- name: Install and setup Postgres
import_role:
name: postgres
vars:
role_spec:
users:
first:
name: '{{ ansible_env.USER }}'
password: '{{ ansible_env.USER }}'
- name: Install ruby
import_role:
name: ruby
vars:
role_spec:
versions: '{{ ruby_versions }}'
- name: Clone ros projects
import_role:
name: git
vars:
role_spec:
project_dir: "{{ lookup('pipe', 'pwd') }}/.."
repositories:
guides:
url: https://github.com/rails-on-services/guides.git
setup:
url: https://github.com/rails-on-services/setup.git
images:
url: https://github.com/rails-on-services/images.git
when: clone_repos|bool == True
- name: Insert aliases
include_role:
name: aliases
vars:
aliases_marker: ros-stuff
aliases_block: |
export RAILS_DATABASE_USER=vagrant
export RAILS_DATABASE_PASSWORD=vagrant