author | Luke Hoersten <luke@hoersten.org> |
Sun, 18 Jul 2021 17:43:46 -0500 | |
changeset 163 | 40b78af86337 |
parent 158 | 1b7ccb729164 |
child 164 | ae19501f5251 |
permissions | -rw-r--r-- |
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
156 | 3 |
- name: create minecraft s3 backup shell script |
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
become: yes |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
copy: |
156 | 6 |
src: "minecraft-s3-backup.sh" |
7 |
dest: "/usr/local/bin/minecraft-s3-backup.sh" |
|
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
mode: "0755" |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
|
158
1b7ccb729164
Updated minecraft backup for lifecycles.
Luke Hoersten <luke@hoersten.org>
parents:
156
diff
changeset
|
10 |
- name: create s3 backup lifesycle json file |
1b7ccb729164
Updated minecraft backup for lifecycles.
Luke Hoersten <luke@hoersten.org>
parents:
156
diff
changeset
|
11 |
become: yes |
1b7ccb729164
Updated minecraft backup for lifecycles.
Luke Hoersten <luke@hoersten.org>
parents:
156
diff
changeset
|
12 |
copy: |
1b7ccb729164
Updated minecraft backup for lifecycles.
Luke Hoersten <luke@hoersten.org>
parents:
156
diff
changeset
|
13 |
src: "minecraft-s3-backup-lifecycle.json" |
1b7ccb729164
Updated minecraft backup for lifecycles.
Luke Hoersten <luke@hoersten.org>
parents:
156
diff
changeset
|
14 |
dest: "/usr/local/share/minecraft-s3-backup-lifecycle.json" |
1b7ccb729164
Updated minecraft backup for lifecycles.
Luke Hoersten <luke@hoersten.org>
parents:
156
diff
changeset
|
15 |
mode: "0755" |
1b7ccb729164
Updated minecraft backup for lifecycles.
Luke Hoersten <luke@hoersten.org>
parents:
156
diff
changeset
|
16 |
|
156 | 17 |
- name: configure minecraft s3 backup systemd service |
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
18 |
become: yes |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
19 |
template: |
156 | 20 |
src: "[email protected]" |
21 |
dest: "/lib/systemd/system/minecraft-s3-backup@{{minecraft_s3_backup_bucket}}.service" |
|
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
22 |
notify: reload s3 backup service |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
23 |
|
156 | 24 |
- name: ensure minecraft s3 backup service is started |
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
25 |
become: yes |
156 | 26 |
systemd: name="minecraft-s3-backup@{{minecraft_s3_backup_bucket}}.service" enabled="yes" |