Make Koschei staging sync work with both BDR and non-BDR DBMS
This commit is contained in:
parent
b4724567a6
commit
411998beb7
1 changed files with 11 additions and 0 deletions
|
@ -59,6 +59,17 @@
|
|||
DROP TABLE resource_consumption_stats CASCADE;
|
||||
COMMIT;
|
||||
"
|
||||
when: 'pgbdr' in koschei_pgsql_hostname
|
||||
- postgresql_db: name=koschei state=absent
|
||||
become: yes
|
||||
become_user: postgres
|
||||
delegate_to: "{{ koschei_pgsql_hostname }}"
|
||||
when: 'pgbdr' not in koschei_pgsql_hostname
|
||||
- postgresql_db: name=koschei owner=koscheiadmin
|
||||
become: yes
|
||||
become_user: postgres
|
||||
delegate_to: "{{ koschei_pgsql_hostname }}"
|
||||
when: 'pgbdr' not in koschei_pgsql_hostname
|
||||
- command: koschei-admin create-db
|
||||
|
||||
- name: bring koschei staging services up
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue