2022-02-05 22:32:54 +02:00
|
|
|
---
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
2019-01-12 17:53:00 +02: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 18:05:48 +02: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 17:53:00 +02:00
|
|
|
tags:
|
|
|
|
- setup-all
|
2019-01-16 18:05:48 +02:00
|
|
|
- setup-postgres
|
2019-01-12 17:53:00 +02: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 17:53:00 +02:00
|
|
|
tags:
|
|
|
|
- import-postgres
|
|
|
|
|
2020-12-14 01:48:36 +02: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 17:53:00 +02:00
|
|
|
tags:
|
2020-12-14 01:48:36 +02:00
|
|
|
- import-synapse-sqlite-db
|
2019-01-12 17:53:00 +02:00
|
|
|
|
2020-12-14 02:23:29 +02: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 02:23:29 +02: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 17:53:00 +02: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
|