-
Notifications
You must be signed in to change notification settings - Fork 0
/
redmine.yml
113 lines (72 loc) · 1.65 KB
/
redmine.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/usr/bin/env ansible-playbook
# vim:set nu:ft=ansible:
---
- hosts: redmine
become: true
roles:
- base-preseed
- { role: maintenance,
maintenance: {
upgrade_type: "full",
allow_reboot: false
}
}
- hosts: redmine-dbs-production
become: true
# Make a backup
# Transfer Backup to Host
- hosts: redmine-dbs-staging
become: true
# Transfer Backup from Host
# Restore Backup
tasks:
- name: "Restore backup"
command: "/home/ansible/helper_scripts/restore.sh"
- hosts: redmine-dbs-staging
become: true
vars_files:
- secrets.yml
pre_tasks:
#- meta: end_play
roles:
- lmu.ansible_role.redmine-db-postgres
- hosts: redmine-workers-staging
become: true
vars_files:
- secrets.yml
pre_tasks:
#- meta: end_play
roles:
- lmu.ansible_role.redmine-worker
- hosts: redmine-frontends-staging
become: true
vars_files:
- secrets.yml
roles:
- lmu.ansible_role.redmine-frontend-apache_httpd
#- lmu.ansible_role.redmine-frontend-nginx
# If Redmine Staging Servers succeed to install that apply to production
- hosts: redmine-dbs-production
become: true
vars_files:
- secrets.yml
pre_tasks:
#- meta: end_play
roles:
- lmu.ansible_role.redmine-db-postgres
- hosts: redmine-workers-production
become: true
vars_files:
- secrets.yml
pre_tasks:
#- meta: end_play
roles:
- lmu.ansible_role.redmine-worker
- hosts: redmine-frontends-production
become: true
vars_files:
- secrets.yml
roles:
- lmu.ansible_role.redmine-frontend-apache_httpd
#- lmu.ansible_role.redmine-frontend-nginx
...