author | Luke Hoersten <luke@hoersten.org> |
Sat, 11 Feb 2023 10:49:06 -0600 | |
changeset 209 | 81014d20e5b1 |
parent 173 | 82f2bcbc5aca |
permissions | -rw-r--r-- |
121
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
- name: download and unarchive soapbox frontend |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
unarchive: |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
src: "{{pleroma_soapbox_download_url}}" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
6 |
dest: "/tmp/" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
creates: "/tmp/static" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
remote_src: yes |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
|
172 | 10 |
- name: delete old soapbox frontend |
11 |
become: yes |
|
12 |
file: |
|
13 |
path: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/" |
|
173 | 14 |
state: "absent" |
172 | 15 |
changed_when: false |
16 |
||
121
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
17 |
- name: install soapbox frontend |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
18 |
become: yes |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
19 |
copy: |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
20 |
remote_src: true |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
21 |
src: "/tmp/static/" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
22 |
dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
23 |
owner: "pleroma" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
24 |
group: "pleroma" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
25 |
mode: "0755" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
26 |
changed_when: false |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
27 |
|
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
28 |
- name: install soapbox config |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
29 |
become: yes |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
30 |
copy: |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
31 |
src: "files/{{pleroma_link_host}}/soapbox.json" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
32 |
dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/instance/soapbox.json" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
33 |
owner: "pleroma" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
34 |
group: "pleroma" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
35 |
mode: "0755" |
6b9694f833a4
Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
36 |
changed_when: false |