Files
computer-playbook/roles/web-app-openproject/tasks/main.yml
Kevin Veen-Birkenbach f55b0ca797 web-app-openproject: migrate from OpenProject 13 to 14
- updated base image from openproject/community:13 to openproject/openproject:14
- added dedicated migration task (db:migrate + schema cache clear)
- moved settings, ldap, and admin tasks to separate files
- adjusted docker-compose template to use OPENPROJECT_WEB_SERVICE / OPENPROJECT_SEEDER_SERVICE variables
- replaced postinstall.sh with precompile-assets.sh
- ensured depends_on uses variable-based service names

Ref: https://chatgpt.com/share/68d57770-2430-800f-ae53-e7eda6993a8d
2025-09-25 19:10:46 +02:00

40 lines
972 B
YAML

---
- name: "load docker, db and proxy for {{ application_id }}"
include_role:
name: sys-stk-full-stateful
- name: "Create {{ OPENPROJECT_PLUGINS_FOLDER }}"
file:
path: "{{ OPENPROJECT_PLUGINS_FOLDER }}"
state: directory
mode: '0755'
- name: "Transfering Gemfile.plugins to {{ OPENPROJECT_PLUGINS_FOLDER }}"
copy:
src: Gemfile.plugins
dest: "{{ [OPENPROJECT_PLUGINS_FOLDER,'Gemfile.plugins'] | path_join }}"
notify:
- docker compose up
- docker compose build
- name: "create {{ OPENPROJECT_DUMMY_VOLUME }}"
file:
path: "{{ OPENPROJECT_DUMMY_VOLUME }}"
state: directory
mode: "0755"
- name: flush docker service
meta: flush_handlers
- name: Execute Migrations
include_tasks: 01_migration.yml
- name: Deploy Settings
include_tasks: 02_settings.yml
- name: Setup LDAP
include_tasks: 03_ldap.yml
when: OPENPROJECT_LDAP_ENABLED | bool
- name: Create OpenProject Administrator
include_tasks: 04_admin.yml