copr: configure postgres before the 'apply the config comments' task

This commit is contained in:
Jakub Kadlcik 2022-11-19 15:03:14 +01:00
parent 6dd20a81b3
commit dfeb77a361

View file

@ -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: