author | Luke Hoersten <luke@hoersten.org> |
Sat, 24 Jul 2021 10:29:53 -0500 | |
changeset 170 | a20a6d03747f |
parent 141 | 0708c9c075fc |
permissions | -rw-r--r-- |
141
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
- name: download and unarchive pleroma release |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
become: yes |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
unarchive: |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
6 |
src: "{{pleroma_download_url}}" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
dest: "/tmp/" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
remote_src: yes |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
|
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
10 |
- name: delete old pleroma release |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
11 |
become: yes |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
12 |
file: |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
13 |
path: "/opt/pleroma/" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
14 |
state: "absent" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
15 |
|
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
16 |
- name: install pleroma release |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
17 |
become: yes |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
18 |
copy: |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
19 |
remote_src: true |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
20 |
src: "/tmp/release/" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
21 |
dest: "/opt/pleroma/" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
22 |
owner: "pleroma" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
23 |
group: "pleroma" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
24 |
notify: restart all pleroma instances |