pleroma/otp/tasks/soapbox.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 08 Jan 2023 21:50:33 -0600
changeset 206 35f2b1e680ed
parent 173 82f2bcbc5aca
permissions -rw-r--r--
Added variable for enabling dendrite reg.

---

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

- name: delete old soapbox frontend
  become: yes
  file:
    path: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/"
    state: "absent"
  changed_when: false

- 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