Skip to content
Snippets Groups Projects
Commit 0fa0d096 authored by Robin Sonnabend's avatar Robin Sonnabend Committed by Lars Beckers
Browse files

Add DB migration for alumnigraph

parent c76f8a14
No related branches found
No related tags found
1 merge request!4WIP: add acmebot role
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
---
# 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