pleroma/otp/tasks/soapbox.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 16 Nov 2020 16:42:59 -0600
changeset 143 7d4a477be685
parent 121 6b9694f833a4
child 172 21cfe5ba8d13
permissions -rw-r--r--
Updated pleroma to 2.2.0 and added new dep.

---

- name: download and unarchive soapbox frontend
  unarchive:
    src: "{{pleroma_soapbox_download_url}}"
    dest: "/tmp/"
    creates: "/tmp/static"
    remote_src: yes

- name: install soapbox frontend
  become: yes
  copy:
    remote_src: true
    src: "/tmp/static/"
    dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/"
    owner: "pleroma"
    group: "pleroma"
    mode: "0755"
  changed_when: false

- name: install soapbox config
  become: yes
  copy:
    src: "files/{{pleroma_link_host}}/soapbox.json"
    dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/instance/soapbox.json"
    owner: "pleroma"
    group: "pleroma"
    mode: "0755"
  changed_when: false