: performs DB migration automatically
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m44s

This commit is contained in:
VC
2025-08-29 08:02:55 +02:00
parent 6a4aa34fe7
commit 13bda0c4c0
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
- name: Run DB migration
become: true
become_user: www-data
ansible.builtin.command:
cmd: "php bin/console doctrine:migrations:migrate -n -q"
chdir: "{{ koillection_app_home }}"
changed_when: false

View File

@@ -81,3 +81,6 @@
- name: Include API activation task
ansible.builtin.include_tasks: api.yml
- name: Include DB migration task
ansible.builtin.include_tasks: db_migration.yml