pleroma/otp/tasks/install.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 28 Mar 2026 20:09:33 -0500
changeset 256 f7af0562f84c
parent 255 433b19646947
permissions -rw-r--r--
Removed sojuctl ansible commands. configure via client.

---

- name: download and unarchive pleroma release
  become: yes
  unarchive:
    src: "{{pleroma_download_url}}"
    dest: "/tmp/"
    remote_src: yes
  register: pleroma_download
  ignore_errors: true

- name: warn if pleroma download failed
  debug:
    msg: "WARNING: Could not download Pleroma release from {{pleroma_download_url}}  skipping install, existing binary unchanged."
  when: pleroma_download is failed

- name: delete old pleroma release
  become: yes
  file:
    path: "/opt/pleroma/"
    state: "absent"
  when: pleroma_download is succeeded

- name: install pleroma release
  become: yes
  copy:
    remote_src: true
    src: "/tmp/release/"
    dest: "/opt/pleroma/"
    owner: "pleroma"
    group: "pleroma"
  when: pleroma_download is succeeded
  notify: restart all pleroma instances