author | Luke Hoersten <luke@hoersten.org> |
Mon, 20 Jan 2020 13:54:14 -0600 | |
changeset 89 | 4e1cf6df4ac9 |
parent 88 | 63efc98132f7 |
child 90 | 08764af85bda |
permissions | -rw-r--r-- |
88
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
- name: create s3 backup shell script |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
become: yes |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
copy: |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
6 |
src: "pleroma-s3-backup.sh" |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
dest: "/usr/local/bin/pleroma-s3-backup.sh" |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
mode: "0755" |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
|
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
10 |
- name: configure s3 backup systemd service |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
11 |
become: yes |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
12 |
copy: |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
13 |
src: "[email protected]" |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
14 |
dest: "/lib/systemd/system/[email protected]" |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
15 |
mode: "0755" |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
16 |
notify: restart pleroma instance s3 backup |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
17 |
|
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
18 |
- name: ensure s3 backup is enabled |
63efc98132f7
Added pleroma instance backup to s3.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
19 |
become: yes |
89
4e1cf6df4ac9
Fixed systemd timer states.
Luke Hoersten <luke@hoersten.org>
parents:
88
diff
changeset
|
20 |
systemd: name="pleroma-s3-backup@{{pleroma_instance}}.service" enabled="yes" |