forked from lobsters/lobsters-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod.yml
93 lines (82 loc) · 1.43 KB
/
prod.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
- name: mariadb
tags: mariadb
become: yes
hosts: db
roles:
- { role: mariadb }
# - name: dns
# tags: dns
# become: yes
# hosts: dns
# roles:
# - { role: dns }
- name: lobsters
tags: lobsters
become: yes
hosts: www_worker
roles:
- { role: lobsters }
- name: unicorn
tags: unicorn
become: yes
hosts: www_worker
roles:
- { role: unicorn }
- name: nginx
tags: nginx
become: yes
hosts: www
roles:
- { role: nginx }
- name: postfix
tags: postfix
become: yes
hosts: mx:smtp
roles:
- { role: postfix }
# - name: prgmr
# tags: prgmr
# become: yes
# hosts: console
# roles:
# - { role: console }
# - name: rsync
# tags: rsync
# become: yes
# hosts: backup
# roles:
# - { role: rsync,
# # don't back up the test system.
# when: "env == 'production'"
# }
- name: search
tags: search
become: yes
hosts: search
roles:
- { role: search,
# search middleware not present on test.
when: "env == 'production'"
}
- name: mockturtle
tags: mockturtle
become: yes
hosts: mockturtle
roles:
- { role: mockturtle }
- name: sysadm
tags: sysadm
become: yes
hosts: all:!console
roles:
- { role: sysadm }
- name: tarsnap
tags: tarsnap
become: true
hosts: all:!console:!mockturtle
roles:
- { role: tarsnap,
# don't back up the test system.
when: "env == 'production'"
}