Skip to content
Snippets Groups Projects
Commit bcdf83a0 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Add DB migration for alumnigraph

parent b5fb091a
No related branches found
No related tags found
No related merge requests found
---
# https://github.com/ansible/ansible/issues/42983
- name: ensure there exists a .ansible folder
file:
path: "{{app_path}}/.ansible"
state: directory
owner: "{{app_user}}"
group: "{{app_group}}"
- name: ensure data model upgrades are applied # noqa 301
shell: "FLASK_APP={{app_program}} {{app_venv}}/bin/flask db upgrade"
args:
chdir: "{{app_path}}"
become: true
become_user: "{{app_user}}"
notify:
- "restart uwsgi instance {{app.instance}}"
- name: ensure the folder from above is not present anymore
file:
path: "{{app_path}}/.ansible"
state: absent
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment