Make Koschei staging sync work with both BDR and non-BDR DBMS

This commit is contained in:
Mikolaj Izdebski 2018-05-17 07:14:21 +00:00
parent b4724567a6
commit 411998beb7

View file

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