Add Soapbox frontend support for Pleroma.
--- a/pleroma/otp/defaults/main.yaml Sun Jul 05 11:28:44 2020 -0500
+++ b/pleroma/otp/defaults/main.yaml Tue Jul 07 15:11:55 2020 -0500
@@ -18,10 +18,12 @@
pleroma_db_host: "localhost"
pleroma_db_superuser: "postgres"
-pleroma_download_url: "https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job={{pleroma_flavor}}"
-
pleroma_db: "pleroma_{{pleroma_instance}}"
pleroma_db_user: "pleroma_{{pleroma_instance}}"
pleroma_data_dir: "/var/lib/pleroma/instance_data"
-pleroma_cleanup_tmp: false
+pleroma_download_url: "https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job={{pleroma_arch}}"
+
+pleroma_soapbox: false
+pleroma_soapbox_version: "v1.0.0"
+pleroma_soapbox_download_url: "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/{{pleroma_soapbox_version}}/download?job=build-production"
--- a/pleroma/otp/tasks/main.yaml Sun Jul 05 11:28:44 2020 -0500
+++ b/pleroma/otp/tasks/main.yaml Tue Jul 07 15:11:55 2020 -0500
@@ -51,7 +51,6 @@
owner: "{{pleroma_db_superuser}}"
group: "{{pleroma_db_superuser}}"
mode: "0600"
- changed_when: false
- name: install pleroma psql
become: yes
@@ -64,8 +63,8 @@
unarchive:
src: "{{pleroma_download_url}}"
dest: "/tmp/"
+ creates: "/tmp/release"
remote_src: yes
- creates: "/tmp/release"
notify: restart pleroma instance
- name: install pleroma release
@@ -78,13 +77,25 @@
group: "pleroma"
changed_when: false
-- name: remove tmp release folder
+- name: download and unarchive soapbox frontend
+ unarchive:
+ src: "{{pleroma_soapbox_download_url}}"
+ dest: "/tmp/"
+ creates: "/tmp/static"
+ remote_src: yes
+ when: pleroma_soapbox
+
+- name: install soapbox frontend
become: yes
- file: path="{{item}}" state="absent"
- with_items:
- - "/tmp/setup_db.psql"
- - "/tmp/release/"
- when: pleroma_cleanup_tmp
+ copy:
+ remote_src: true
+ src: "/tmp/static/"
+ dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/"
+ owner: "pleroma"
+ group: "pleroma"
+ mode: "0755"
+ when: pleroma_soapbox
+ changed_when: false
- name: configure pleroma systemd service
become: yes