pleroma/otp/tasks/soapbox.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 05 Jul 2021 10:43:33 -0500
changeset 160 64abbaff7a7d
parent 121 6b9694f833a4
child 172 21cfe5ba8d13
permissions -rw-r--r--
Fixed bug.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
- name: install soapbox frontend
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
  become: yes
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
  copy:
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
    remote_src: true
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
    src: "/tmp/static/"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
    dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
    owner: "pleroma"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
    group: "pleroma"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
    mode: "0755"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
  changed_when: false
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
- name: install soapbox config
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
  become: yes
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
  copy:
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
    src: "files/{{pleroma_link_host}}/soapbox.json"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
    dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/instance/soapbox.json"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
    owner: "pleroma"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
    group: "pleroma"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
    mode: "0755"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
  changed_when: false