matrix-docker-ansible-deploy/roles/matrix-postgres/tasks
Slavi Pantaleev dd797ba6a7 Fix Postgres database importing/upgrading conflicts
We were running into conflicts, because having initialized
the roles (users) and databases, trying to import leads to
errors (role XXX already exists, etc.).

We were previously ignoring the Synapse database (`homeserver`)
when upgrading/importing, because that one gets created by default
whenever the container starts.

For our additional databases, it's a similar situation now.
It's not created by default as soon as Postgres starts with an empty
database, but rather we create it as part of running the playbook.

So we either need to skip those role/database creation statements
while upgrading/importing, or to avoid creating the additional database
and rely on the import for that. I've gone for the former, because
it's already similar to what we were doing and it's simpler
(it lets `setup_postgres.yml` be the same in all scenarios).
2020-12-14 22:28:20 +02:00
..
util Add (SQLite + Postgres) support and automatic migration to matrix-ma1sd 2020-12-14 17:16:25 +02:00
import_generic_sqlite_db.yml Make --tags=import-generic-sqlite-db commands not pass a sensitive connection string around 2020-12-14 11:47:00 +02:00
import_nedb.yml hint supported automatic migration nedb->postgres 2020-12-14 16:33:40 +01:00
import_postgres.yml Fix Postgres database importing/upgrading conflicts 2020-12-14 22:28:20 +02:00
import_synapse_sqlite_db.yml Rename some doc files and commands related to importing 2020-12-14 01:51:00 +02:00
init.yml
main.yml hint supported automatic migration nedb->postgres 2020-12-14 16:33:40 +01:00
migrate_postgres_data_directory.yml
run_vacuum.yml Remove hardcoded command paths in playbook shell usage 2020-05-27 23:14:56 +02:00
setup_postgres.yml Do not execute additional databases creation code if not necessary 2020-12-13 23:46:05 +02:00
upgrade_postgres.yml Fix Postgres database importing/upgrading conflicts 2020-12-14 22:28:20 +02:00
validate_config.yml Ensure Postgres passwords are not longer than 99 characters 2020-11-26 09:51:48 +02:00