forked from map7/ansible_recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebserver.yml
More file actions
63 lines (55 loc) · 1.63 KB
/
webserver.yml
File metadata and controls
63 lines (55 loc) · 1.63 KB
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
---
#
# Webserver for running Ruby on Rails with postgresql & node.
#
# Run
# ansible-playbook webserver.yml -b -v
# -b become sudo
# -v verbose
- hosts: webservers
user: deploy
vars_files:
- "vars/defaults.yml"
- "vars/$ansible_distribution-$ansible_architecture.yml"
- "vars/$ansible_distribution.yml"
pre_tasks:
# Required on Debian 8 minimum install
- name: install python-apt
command: >
apt-get install python-apt -y -q
creates=/usr/share/doc/python-apt
sudo: yes
roles:
# Install passenger & apache
- role: mtpereira.passenger
passenger_webserver: apache
sudo: yes
- role: Heroqu.nodejs4x
sudo: yes
# --------------------------------------------------------------------------------
# Broken roles
# --------------------------------------------------------------------------------
# # Issues: https://github.com/William-Yeh/ansible-nodejs/issues/4
# - role: williamyeh.nodejs
# nodejs_version: "5"
# become: yes
# # Issues: https://github.com/SamyRoad/ansible-rbenv/issues/1
# - role: mmacia.rbenv
# rbenv_env: user
# rbenv_ruby_version: 2.1.8
# rbenv_users:
# - map7
# become: yes
tasks:
- include: common/tasks/add_repositories.yml
- include: common/tasks/system.yml
become: yes
- include: common/tasks/email.yml
become: yes
- include: common/tasks/ruby.yml
- include: common/tasks/rails.yml
- include: common/tasks/postgresql.yml
become: yes
- include: common/tasks/backup.yml
handlers:
- include: common/handlers/handlers.yml