✨: performs DB migration automatically
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m44s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m44s
This commit is contained in:
9
roles/koillection/tasks/db_migration.yml
Normal file
9
roles/koillection/tasks/db_migration.yml
Normal 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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user