src.nth.io/

summaryrefslogtreecommitdiff
path: root/pleroma/otp/tasks/install.yaml
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-03-28 13:42:08 -0500
committerLuke Hoersten <[email protected]>2026-03-28 13:42:08 -0500
commit45da5bca82200af63b0ee16479b267eb209386f3 (patch)
tree91725673c5cf227cda7edee89f2909a30251eda3 /pleroma/otp/tasks/install.yaml
parent7ac3515aa05a60f24176cfda0364694ff2fdb8c3 (diff)
Added soju role.
Diffstat (limited to 'pleroma/otp/tasks/install.yaml')
-rw-r--r--pleroma/otp/tasks/install.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/pleroma/otp/tasks/install.yaml b/pleroma/otp/tasks/install.yaml
index 6ca437b..2759729 100644
--- a/pleroma/otp/tasks/install.yaml
+++ b/pleroma/otp/tasks/install.yaml
@@ -6,12 +6,20 @@
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
@@ -21,4 +29,5 @@
dest: "/opt/pleroma/"
owner: "pleroma"
group: "pleroma"
+ when: pleroma_download is succeeded
notify: restart all pleroma instances