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/instance.yaml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'pleroma/otp/tasks/instance.yaml') diff --git a/pleroma/otp/tasks/instance.yaml b/pleroma/otp/tasks/instance.yaml index d8983e4..3a48991 100644 --- a/pleroma/otp/tasks/instance.yaml +++ b/pleroma/otp/tasks/instance.yaml @@ -22,6 +22,8 @@ - "{{pleroma_data_dir}}/{{pleroma_instance}}" - "{{pleroma_data_dir}}/{{pleroma_instance}}/uploads" - "{{pleroma_data_dir}}/{{pleroma_instance}}/static" + - "{{pleroma_data_dir}}/{{pleroma_instance}}/static/static" + - "{{pleroma_data_dir}}/{{pleroma_instance}}/static/static/themes" - name: install pleroma db schema file become: yes @@ -40,8 +42,25 @@ changed_when: false no_log: true -- include_tasks: soapbox.yaml - when: pleroma_soapbox +- name: install pleroma fe theme + become: yes + copy: + src: "files/{{pleroma_link_host}}/{{pleroma_fe_theme}}.json" + dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/static/themes/{{pleroma_fe_theme}}.json" + owner: "pleroma" + group: "pleroma" + mode: "0644" + when: pleroma_fe_theme is defined + +- name: install pleroma styles index + become: yes + copy: + src: "files/{{pleroma_link_host}}/styles.json" + dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/styles.json" + owner: "pleroma" + group: "pleroma" + mode: "0644" + when: pleroma_fe_theme is defined - name: ensure pleroma instance is enabled and started become: yes @@ -49,7 +68,6 @@ - name: migrate db become: yes - become_user: "pleroma" command: "/opt/pleroma/bin/pleroma_ctl migrate" args: chdir: "/opt/pleroma/" -- cgit v1.2.3