copr: configure postgres before the 'apply the config comments' task
This commit is contained in:
parent
6dd20a81b3
commit
dfeb77a361
1 changed files with 11 additions and 11 deletions
|
@ -91,6 +91,17 @@
|
|||
- config
|
||||
- chroots_config
|
||||
|
||||
- import_tasks: "psql_setup.yml"
|
||||
|
||||
- name: upgrade db to head
|
||||
command: alembic-3 upgrade head
|
||||
become: yes
|
||||
become_user: copr-fe
|
||||
args:
|
||||
chdir: /usr/share/copr/coprs_frontend/
|
||||
register: alembic_result
|
||||
changed_when: alembic_result.stdout is search("Running upgrade")
|
||||
|
||||
- name: apply the config comments
|
||||
command: copr-frontend chroots-template
|
||||
become: yes
|
||||
|
@ -115,17 +126,6 @@
|
|||
state: no
|
||||
persistent: yes
|
||||
|
||||
- import_tasks: "psql_setup.yml"
|
||||
|
||||
- name: upgrade db to head
|
||||
command: alembic-3 upgrade head
|
||||
become: yes
|
||||
become_user: copr-fe
|
||||
args:
|
||||
chdir: /usr/share/copr/coprs_frontend/
|
||||
register: alembic_result
|
||||
changed_when: alembic_result.stdout is search("Running upgrade")
|
||||
|
||||
- name: install letsencrypt ssl certificates for dev
|
||||
include_role: name=copr/certbot
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue