mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 23:30:29 +08:00
copr: configure postgres before the 'apply the config comments' task
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user