From 6a8cb5f10557733f1521035d57a191b12832d634 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sat, 25 Apr 2026 19:54:49 -0500 Subject: Build all roles from source with versioned artifacts - Add pleroma/build role to compile from source (OTP binaries no longer published) - Install Elixir 1.18.3 manually on Ubuntu Noble (ships 1.14, needs 1.15+) - Standardize all build roles to produce versioned .tar.gz artifacts - Add version defaults to all server roles (bin, dendrite, nostr/relayer) - Switch server roles from get_url to unarchive for .tar.gz installs - Add build_srv_dir variable to all build roles - Deploy pleroma styles.json so custom FE themes appear in picker - Fix pleroma OTP install: version check, root ownership, auto-cleanup old releases - Fix pleroma config: log level :warn -> :warning, remove availableStyles - Add wait_for grafana readiness before dashboard install - Set minecraft ops changed_when: false --- pleroma/otp/tasks/install.yaml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'pleroma/otp/tasks/install.yaml') diff --git a/pleroma/otp/tasks/install.yaml b/pleroma/otp/tasks/install.yaml index 2759729..65ab2c1 100644 --- a/pleroma/otp/tasks/install.yaml +++ b/pleroma/otp/tasks/install.yaml @@ -1,25 +1,24 @@ --- +- name: check if pleroma version already installed + stat: + path: "/opt/pleroma/releases/{{pleroma_version}}" + register: installed_version + - 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 + when: not installed_version.stat.exists - name: delete old pleroma release become: yes file: path: "/opt/pleroma/" state: "absent" - when: pleroma_download is succeeded + when: not installed_version.stat.exists - name: install pleroma release become: yes @@ -27,7 +26,5 @@ remote_src: true src: "/tmp/release/" dest: "/opt/pleroma/" - owner: "pleroma" - group: "pleroma" - when: pleroma_download is succeeded + when: not installed_version.stat.exists notify: restart all pleroma instances -- cgit v1.2.3