Make sure koji role is set up before syncing db

This commit is contained in:
Mikolaj Izdebski 2018-02-28 01:05:17 +00:00
parent a2899a7817
commit 1aa06f2fa9

View file

@ -44,6 +44,7 @@
tasks: tasks:
- template: src=templates/koji-reset-staging.sql dest=/var/lib/pgsql/koji-reset-staging.sql - template: src=templates/koji-reset-staging.sql dest=/var/lib/pgsql/koji-reset-staging.sql
- postgresql_user: name=koji password={{ kojiPassword }}
- postgresql_db: name=koji state=absent - postgresql_db: name=koji state=absent
- postgresql_db: name=koji owner=koji - postgresql_db: name=koji owner=koji
# buildroot_listing is excluded from the sync to save some time # buildroot_listing is excluded from the sync to save some time