-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathserver.yml
62 lines (48 loc) · 1.69 KB
/
server.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
---
#
## Ansible Role For shutting down the server, backing it up, updating it and restarting it
- name: Deploy Server
hosts: "{{ host }}"
gather_facts: true
vars_files:
- variables/all.yml
tasks:
- name: Include variables
include_vars:
dir: variables
- name: Update SQL
include: "tasks/setup/setup-sql.yml"
when: "{{ do_deploy | default('false') }}"
- name: Warn restart
include: "tasks/warn-restart-10.yml"
when: "{{ do_warn10 | default('false') }}"
- name: Warn restart
include: "tasks/warn-restart-5.yml"
when: "{{ do_warn5 | default('false') }}"
- name: Warn restart
include: "tasks/warn-restart-1.yml"
when: "{{ do_warn1 | default('false') }}"
- name: Stop Minecraft Server
include: "tasks/stop-minecraft.yml"
when: "{{ do_stopminecraft | default('false') }}"
- name: Stop BungeeCord
include: "tasks/stop-bungee.yml"
when: "{{ do_stopbungee | default('false') }}"
- name: Backup server
include: "tasks/backup-server.yml"
when: "{{ do_backup | default('false') }}"
- name: Deploy Server
include: "tasks/update/deploy-everything.yml"
when: "{{ do_update | default('false') }}"
- name: Start BungeeCord
include: "tasks/start-bungee.yml"
when: "{{ do_startbungee | default('false') }}"
- name: Start Minecraft Server
include: "tasks/start-minecraft.yml"
when: "{{ do_startminecraft | default('false') }}"
- name: Extract partial backup
include: "tasks/extract-region.yml"
when: "{{ extract_single_region | default('false') }}"
- name: Do duplicity
include: "tasks/duplicity-backups.yml"
when: "{{ do_duplicity | default('false') }}"