copr-frontend: reeanble alembic upgrade head
This commit is contained in:
parent
ab455cd57d
commit
8c816c031e
1 changed files with 8 additions and 6 deletions
|
@ -21,6 +21,7 @@
|
|||
tags:
|
||||
- packages
|
||||
|
||||
# we install python-alembic because https://bugzilla.redhat.com/show_bug.cgi?id=1536058
|
||||
- name: install additional pkgs for copr-frontend
|
||||
dnf: state=present pkg={{ item }}
|
||||
with_items:
|
||||
|
@ -28,6 +29,7 @@
|
|||
- "mod_ssl"
|
||||
- redis
|
||||
- pxz
|
||||
- python-alembic
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
@ -60,12 +62,12 @@
|
|||
|
||||
- import_tasks: "psql_setup.yml"
|
||||
|
||||
#- name: upgrade db to head
|
||||
# command: alembic upgrade head
|
||||
# become: yes
|
||||
# become_user: copr-fe
|
||||
# args:
|
||||
# chdir: /usr/share/copr/coprs_frontend/
|
||||
- name: upgrade db to head
|
||||
command: alembic upgrade head
|
||||
become: yes
|
||||
become_user: copr-fe
|
||||
args:
|
||||
chdir: /usr/share/copr/coprs_frontend/
|
||||
|
||||
- name: set up admins
|
||||
command: ./manage.py alter_user --admin {{ item }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue