forked from CactuseSecurity/firewall-orchestrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
96 lines (85 loc) · 2.08 KB
/
site.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
94
95
96
---
# for installation options see https://github.com/CactuseSecurity/billy/blob/master/documentation/installer/install-advanced.md
- hosts: all
tasks:
- name: uninstall product
import_tasks: scripts/uninstall-billy.yml
when: "installation_mode == 'uninstall'"
become: true
tags:
- backend
- frontend
- hosts: all
roles:
- { role: common, when: "not installation_mode == 'uninstall'" }
tags:
- backend
- api
- ui
- frontend
- hosts: databaseserver
roles:
- { role: database, when: "not installation_mode == 'uninstall'" }
tags:
- backend
- hosts: middlewareserver
roles:
- { role: openldap-server, when: "not installation_mode == 'uninstall'" }
- { role: lib, when: "not installation_mode == 'uninstall'" }
- { role: middleware, when: "not installation_mode == 'uninstall'" }
tags:
- backend
- csharp
- hosts: apiserver
roles:
- { role: docker, when: "not installation_mode == 'uninstall'" }
tags:
- backend
- api
# do not put this into the same play as docker (handler needs to run inbetween!)
- hosts: apiserver
roles:
- { role: api, when: "not installation_mode == 'uninstall'" }
tags:
- backend
- api
- hosts: frontends
roles:
- { role: lib, when: "not installation_mode == 'uninstall'"}
- { role: ui, when: "not installation_mode == 'uninstall'"}
tags:
- frontend
- csharp
- ui
- hosts: frontends
tasks:
- name: restart ui service to display new version
service:
name: "{{ ui_service_name }}"
state: restarted
become: true
when: "not installation_mode == 'uninstall'"
tags:
- frontend
- ui
# - hosts: all
# roles:
# - { role: test, when: "not installation_mode == 'uninstall'" }
# tags:
# - test
- hosts: all
roles:
- { role: cleanup, when: "not installation_mode == 'uninstall'" }
tags:
- cleanup
- backend
- frontend
- ui
- hosts: all
roles:
- { role: final-display, when: "not installation_mode == 'uninstall'" }
tags:
- cleanup
- backend
- frontend
- ui