diff options
| author | Luke Hoersten <[email protected]> | 2026-04-25 19:54:49 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-04-25 19:54:49 -0500 |
| commit | 6a8cb5f10557733f1521035d57a191b12832d634 (patch) | |
| tree | 159e102eb03c7c04e7f51844fd4da136b9185fdd /pleroma/otp/tasks/install.yaml | |
| parent | 5d5b976e379487e8b1eccc4fc96d5920a930ff0f (diff) | |
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
Diffstat (limited to 'pleroma/otp/tasks/install.yaml')
| -rw-r--r-- | pleroma/otp/tasks/install.yaml | 19 |
1 files changed, 8 insertions, 11 deletions
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 |
