2022-02-05 21:32:54 +01:00
|
|
|
---
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
2019-01-12 16:53:00 +01:00
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
|
|
|
when: "run_setup | bool and matrix_postgres_enabled | bool"
|
2019-01-16 17:05:48 +01:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-postgres
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_postgres.yml"
|
|
|
|
when: run_setup | bool
|
2019-01-12 16:53:00 +01:00
|
|
|
tags:
|
|
|
|
- setup-all
|
2019-01-16 17:05:48 +01:00
|
|
|
- setup-postgres
|
2019-01-12 16:53:00 +01:00
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_postgres.yml"
|
|
|
|
when: run_postgres_import | bool
|
2019-01-12 16:53:00 +01:00
|
|
|
tags:
|
|
|
|
- import-postgres
|
|
|
|
|
2020-12-14 00:48:36 +01: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.
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
|
|
|
|
when: run_postgres_import_sqlite_db | bool
|
2019-01-12 16:53:00 +01:00
|
|
|
tags:
|
2020-12-14 00:48:36 +01:00
|
|
|
- import-synapse-sqlite-db
|
2019-01-12 16:53:00 +01:00
|
|
|
|
2020-12-14 01:23:29 +01:00
|
|
|
# Perhaps we need a new variable here, instead of `run_postgres_import_sqlite_db`.
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_generic_sqlite_db.yml"
|
|
|
|
when: run_postgres_import_sqlite_db | bool
|
2020-12-14 01:23:29 +01:00
|
|
|
tags:
|
|
|
|
- import-generic-sqlite-db
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
|
|
|
|
when: run_postgres_upgrade | bool
|
2019-01-12 16:53:00 +01:00
|
|
|
tags:
|
|
|
|
- upgrade-postgres
|
2019-07-08 08:38:24 +02:00
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/run_vacuum.yml"
|
|
|
|
when: run_postgres_vacuum | bool
|
2019-07-08 08:38:24 +02:00
|
|
|
tags:
|
|
|
|
- run-postgres-vacuum
|