-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.yml
88 lines (72 loc) · 1.76 KB
/
main.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
---
# Used to setup a deployment on localhost.
- import_playbook: pretask.yml
- name: "notify #cnx-stream of the deployment (start)"
hosts: all
vars:
msg: "{{ ansible_user_id }} started deploy to {{ inventory_hostname }} :hourglass_flowing_sand:"
channels:
- "#cnx-stream"
- "#deployments"
tasks:
- import_tasks: tasks/notify_slack.yml
# +++
# Persistence services
# +++
- import_playbook: nfs.yml
- import_playbook: nfs_connected.yml
- import_playbook: database.yml
- import_playbook: broker.yml
# +++
# Applications
# +++
- import_playbook: archive.yml not_standalone=yes
- import_playbook: publishing.yml not_standalone=yes
- import_playbook: database_migration.yml
- import_playbook: channel_processing.yml
- import_playbook: publishing_worker.yml
- import_playbook: authoring.yml
- import_playbook: press.yml
- import_playbook: press_worker.yml
- import_playbook: zope.yml not_standalone=yes
tags:
- zope
- zeo
- zclient
- pdf_gen
- legacy_be
- be
- import_playbook: legacy_frontend.yml
tags:
- haproxy
- varnish
- legacy_fe
- fe
- import_playbook: frontend.yml not_standalone=yes
tags:
- nginx
- varnish
- webview
- fe
- import_playbook: lead_frontend.yml
tags:
- haproxy
- lead_fe
- fe
- import_playbook: iptables.yml
tags:
- iptables
- import_playbook: sysstat.yml
tags:
- sysstat
- import_playbook: update_versions.yml
- import_playbook: run_deferred_migrations.yml
- name: "notify #cnx-stream of the deployment (end)"
hosts: all
vars:
msg: "Deploy to {{ inventory_hostname }} by {{ ansible_user_id }} was successful :heavy_check_mark:"
channels:
- "#cnx-stream"
- "#deployments"
tasks:
- import_tasks: tasks/notify_slack.yml