-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-server.yml
38 lines (31 loc) · 1.05 KB
/
build-server.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
---
# Confused about Ansible roles?
# I was too. They're basically just a bit of naming convention magic.
# http://docs.ansible.com/playbooks_roles.html#roles
### Bootstrap the {{ deploy }} user.
### You must call this playbook with an admin user.
### (The included Vagrantfile will use -u vagrant. For DigitalOcean, use -u root.)
- hosts: all
vars_files:
- vars/defaults.yml
sudo: True
# user: intentionally blank
roles:
- { role: create-deploy-user, tags: ['create-deploy-user'] }
- hosts: all
vars_files:
- vars/defaults.yml
- vars/bikeways.yml
- vars/bikeways.env.yml
remote_user: "{{ deploy }}"
roles:
### Server provisioning roles:
- { role: linux-prereqs, tags: ['linux-prereqs'] }
- { role: ufw, tags: ['ufw'] }
- { role: postgresql, tags: ['postgresql'] }
- { role: rbenv, tags: ['rbenv'] }
- { role: ruby, tags: ['ruby'] }
- { role: papertrail, tags: ['papertrail'] }
- { role: nginx-passenger, tags: ['nginx-passenger'] }
### Site specific roles:
- { role: bikeways, tags: ['bikeways'] }