2019-01-12 15:53:00 +00:00
|
|
|
- import_tasks: "{{ role_path }}/tasks/init.yml"
|
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
|
2019-01-16 16:05:48 +00:00
|
|
|
- import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
2019-05-21 15:25:59 +00:00
|
|
|
when: "run_setup|bool and matrix_postgres_enabled|bool"
|
2019-01-16 16:05:48 +00:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-postgres
|
|
|
|
|
2019-01-12 15:53:00 +00:00
|
|
|
- import_tasks: "{{ role_path }}/tasks/setup_postgres.yml"
|
2019-05-21 15:25:59 +00:00
|
|
|
when: run_setup|bool
|
2019-01-12 15:53:00 +00:00
|
|
|
tags:
|
|
|
|
- setup-all
|
2019-01-16 16:05:48 +00:00
|
|
|
- setup-postgres
|
2019-01-12 15:53:00 +00:00
|
|
|
|
|
|
|
- import_tasks: "{{ role_path }}/tasks/import_postgres.yml"
|
2019-07-08 05:55:08 +00:00
|
|
|
when: run_postgres_import|bool
|
2019-01-12 15:53:00 +00:00
|
|
|
tags:
|
|
|
|
- import-postgres
|
|
|
|
|
2020-12-13 23:48:36 +00:00
|
|
|
# The `run_postgres_import_sqlite_db` variable had better be renamed to be consistent,
|
|
|
|
# but that's a breaking change which may cause trouble for people.
|
|
|
|
- import_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
|
2019-07-08 05:55:08 +00:00
|
|
|
when: run_postgres_import_sqlite_db|bool
|
2019-01-12 15:53:00 +00:00
|
|
|
tags:
|
2020-12-13 23:48:36 +00:00
|
|
|
- import-synapse-sqlite-db
|
2019-01-12 15:53:00 +00:00
|
|
|
|
2020-12-14 00:23:29 +00:00
|
|
|
# Perhaps we need a new variable here, instead of `run_postgres_import_sqlite_db`.
|
|
|
|
- import_tasks: "{{ role_path }}/tasks/import_generic_sqlite_db.yml"
|
|
|
|
when: run_postgres_import_sqlite_db|bool
|
|
|
|
tags:
|
|
|
|
- import-generic-sqlite-db
|
|
|
|
|
2020-12-14 15:27:06 +00:00
|
|
|
# Imports slacks neDB to postgres.
|
|
|
|
- import_tasks: "{{ role_path }}/tasks/import_nedb.yml"
|
|
|
|
vars:
|
|
|
|
database: appservice_slack
|
|
|
|
when: run_postgres_import_nedb|bool
|
|
|
|
tags:
|
|
|
|
- import-slack-nedb
|
|
|
|
|
2019-01-12 15:53:00 +00:00
|
|
|
- import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
|
2019-07-08 05:55:08 +00:00
|
|
|
when: run_postgres_upgrade|bool
|
2019-01-12 15:53:00 +00:00
|
|
|
tags:
|
|
|
|
- upgrade-postgres
|
2019-07-08 06:38:24 +00:00
|
|
|
|
|
|
|
- import_tasks: "{{ role_path }}/tasks/run_vacuum.yml"
|
|
|
|
when: run_postgres_vacuum|bool
|
|
|
|
tags:
|
|
|
|
- run-postgres-vacuum
|