forked from map7/ansible_recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-webserver.yml
59 lines (51 loc) · 1.52 KB
/
test-webserver.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
---
#
# Webserver for running Ruby on Rails with postgresql & node.
#
# Run
# ansible-playbook webserver.yml -b -v
# -b become sudo
# -v verbose
- hosts: test-webservers
user: map7
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/system.yml
# become: yes
# - include: common/tasks/ruby.yml
# - include: common/tasks/rails.yml
# - include: common/tasks/postgresql.yml
# become: yes
handlers:
- include: common/handlers/handlers.yml