pleroma/otp/tasks/soapbox.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 11 Sep 2022 14:08:17 -0500
changeset 195 da34c8d7511d
parent 173 82f2bcbc5aca
permissions -rw-r--r--
Fixed uwsgi hosting for src.nth.io.
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
172
21cfe5ba8d13 More fixes.
Luke Hoersten <luke@hoersten.org>
parents: 121
diff changeset
    10
- name: delete old soapbox frontend
21cfe5ba8d13 More fixes.
Luke Hoersten <luke@hoersten.org>
parents: 121
diff changeset
    11
  become: yes
21cfe5ba8d13 More fixes.
Luke Hoersten <luke@hoersten.org>
parents: 121
diff changeset
    12
  file:
21cfe5ba8d13 More fixes.
Luke Hoersten <luke@hoersten.org>
parents: 121
diff changeset
    13
    path: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/"
173
82f2bcbc5aca Fixed typo
Luke Hoersten <luke@hoersten.org>
parents: 172
diff changeset
    14
    state: "absent"
172
21cfe5ba8d13 More fixes.
Luke Hoersten <luke@hoersten.org>
parents: 121
diff changeset
    15
  changed_when: false
21cfe5ba8d13 More fixes.
Luke Hoersten <luke@hoersten.org>
parents: 121
diff changeset
    16
121
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
- name: install soapbox frontend
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
  become: yes
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
  copy:
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
    remote_src: true
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
    src: "/tmp/static/"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
    dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
    owner: "pleroma"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
    group: "pleroma"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
    mode: "0755"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
  changed_when: false
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
- name: install soapbox config
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
  become: yes
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
  copy:
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    31
    src: "files/{{pleroma_link_host}}/soapbox.json"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    32
    dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/instance/soapbox.json"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    33
    owner: "pleroma"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    34
    group: "pleroma"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    35
    mode: "0755"
6b9694f833a4 Added conditional soapbox config.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    36
  changed_when: false