pleroma/otp/tasks/soapbox.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 04 Feb 2024 20:27:19 -0600
changeset 227 2e0366f2dcbe
parent 173 82f2bcbc5aca
permissions -rw-r--r--
Tons of updates to fix migration to new server.
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