pleroma/otp/tasks/install.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 12 Dec 2021 18:48:50 -0600
changeset 177 11f52d70bca4
parent 141 0708c9c075fc
permissions -rw-r--r--
Updated minecraft
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