author | Luke Hoersten <luke@hoersten.org> |
Mon, 07 Oct 2024 15:25:37 -0500 | |
changeset 238 | bdbc88cb5078 |
parent 227 | 2e0366f2dcbe |
permissions | -rw-r--r-- |
60 | 1 |
--- |
2 |
||
141
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
3 |
- name: add pleroma user |
60 | 4 |
become: yes |
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
5 |
user: name="pleroma" shell="/bin/false" home="/opt/pleroma" system="yes" |
60 | 6 |
|
101 | 7 |
- name: apt install pleroma dependencies |
8 |
become: yes |
|
143
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
141
diff
changeset
|
9 |
apt: name="{{item}}" |
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
141
diff
changeset
|
10 |
loop: |
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
141
diff
changeset
|
11 |
- "libmagic-dev" |
238
bdbc88cb5078
Lots of updates and fixes for Ubuntu 24.04 Noble.
Luke Hoersten <luke@hoersten.org>
parents:
227
diff
changeset
|
12 |
- "libtinfo6" |
bdbc88cb5078
Lots of updates and fixes for Ubuntu 24.04 Noble.
Luke Hoersten <luke@hoersten.org>
parents:
227
diff
changeset
|
13 |
- "libvips42t64" |
227
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
143
diff
changeset
|
14 |
|
141
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
15 |
- name: create pleroma config and data directories |
60 | 16 |
become: yes |
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
17 |
file: |
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
18 |
path: "{{item}}" |
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
19 |
state: "directory" |
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
20 |
mode: "0755" |
143
7d4a477be685
Updated pleroma to 2.2.0 and added new dep.
Luke Hoersten <luke@hoersten.org>
parents:
141
diff
changeset
|
21 |
loop: |
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
22 |
- "{{pleroma_data_dir}}" |
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
23 |
- "/etc/pleroma" |
85
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
24 |
- "/opt/pleroma" |
60 | 25 |
|
87
4f87097dd651
Got pleroma otp multi-instance working.
Luke Hoersten <luke@hoersten.org>
parents:
85
diff
changeset
|
26 |
- name: configure pleroma systemd service |
85
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
27 |
become: yes |
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
28 |
copy: |
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
29 |
src: "[email protected]" |
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
30 |
dest: "/lib/systemd/system/[email protected]" |
dcfd23308c32
Completed pleroma-otp role.
Luke Hoersten <luke@hoersten.org>
parents:
84
diff
changeset
|
31 |
notify: restart pleroma instance |
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
32 |
|
141
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
33 |
- name: check if pleroma release exists |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
34 |
stat: path="/tmp/release/" |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
35 |
register: release |
84
d0c40727e6ff
Added WIP pleroma OTP role.
Luke Hoersten <luke@hoersten.org>
parents:
81
diff
changeset
|
36 |
|
141
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
37 |
- include_tasks: install.yaml |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
38 |
when: not release.stat.exists |
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
39 |
|
0708c9c075fc
Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
122
diff
changeset
|
40 |
- include_tasks: instance.yaml |