forked from heybigname/virtual-machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovision.yml
59 lines (59 loc) · 1.63 KB
/
provision.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
---
- hosts: all
sudo: true
vars:
hostname: "dev"
dbuser: "root"
dbpasswd: "password"
databases: []
sites: []
install_db: "no"
install_web: "no"
install_ohmyzsh: "no"
install_hhvm: "no"
install_mailcatcher: "no"
install_beanstalkd: "no"
install_redis: "no"
install_javascript_build_system: "no"
install_gems: []
install_r: "no"
r_packages: []
install_java: "no"
install_scala: "no"
scala_activator_version: "1.2.10"
tasks:
- include: tasks/system.yml
- include: tasks/ohmyzsh.yml
when: install_ohmyzsh == "yes"
- include: tasks/mysql.yml
when: install_db == "yes"
- include: tasks/php.yml
when: install_web == "yes"
- include: tasks/php-fpm.yml
when: install_web == "yes"
- include: tasks/nginx.yml
when: install_web == "yes"
- include: tasks/hhvm.yml
when: install_hhvm == "yes"
- include: tasks/mailcatcher.yml
when: install_mailcatcher == "yes"
- include: tasks/beanstalkd.yml
when: install_beanstalkd == "yes"
- include: tasks/nodejs.yml
when: install_javascript_build_system == "yes"
- include: tasks/redis.yml
when: install_redis == "yes"
- include: tasks/ruby.yml
- include: tasks/r.yml
when: install_r == "yes"
- include: tasks/java.yml
when: install_java == "yes"
- include: tasks/scala.yml
when: install_scala == "yes"
handlers:
- name: restart nginx
service: name=nginx state=restarted
- name: restart php5-fpm
service: name=php5-fpm state=restarted
- name: restart mysql
service: name=mysql state=restarted