pleroma/otp/tasks/main.yaml
changeset 120 7b3b01948954
parent 103 78a072bbf3c1
child 121 6b9694f833a4
--- 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