src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pleroma/otp/tasks/instance.yaml7
1 files changed, 6 insertions, 1 deletions
diff --git a/pleroma/otp/tasks/instance.yaml b/pleroma/otp/tasks/instance.yaml
index 3a48991..b69477d 100644
--- a/pleroma/otp/tasks/instance.yaml
+++ b/pleroma/otp/tasks/instance.yaml
@@ -66,6 +66,11 @@
become: yes
systemd: name="pleroma@{{pleroma_instance}}.service" enabled="yes" state="started"
+- name: check if pleroma binary is present
+ stat:
+ path: "/opt/pleroma/bin/pleroma_ctl"
+ register: pleroma_binary
+
- name: migrate db
become: yes
command: "/opt/pleroma/bin/pleroma_ctl migrate"
@@ -73,4 +78,4 @@
chdir: "/opt/pleroma/"
environment:
PLEROMA_CONFIG_PATH: "/etc/pleroma/{{pleroma_instance}}.config.exs"
- changed_when: false
+ when: pleroma_binary.stat.exists and not installed_version.stat.exists