pleroma/otp/tasks/install.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 20 Jul 2024 10:22:38 -0500
changeset 233 abc2c5c417a7
parent 141 0708c9c075fc
permissions -rw-r--r--
Version updates.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
141
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: download and unarchive pleroma release
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  become: yes
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  unarchive:
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
    src: "{{pleroma_download_url}}"
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
    dest: "/tmp/"
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
    remote_src: yes
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
- name: delete old pleroma release
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
  become: yes
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
  file:
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
    path: "/opt/pleroma/"
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
    state: "absent"
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
- name: install pleroma release
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
  become: yes
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
  copy:
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
    remote_src: true
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
    src: "/tmp/release/"
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
    dest: "/opt/pleroma/"
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
    owner: "pleroma"
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
    group: "pleroma"
0708c9c075fc Added proper reinstall logic for pleroma.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
  notify: restart all pleroma instances