2022-02-05 20:32:54 +00:00
|
|
|
---
|
|
|
|
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
|
|
|
when: "run_setup | bool and matrix_postgres_enabled | bool"
|
2019-01-16 16:05:48 +00:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-postgres
|
2022-11-25 14:02:51 +00:00
|
|
|
- install-postgres
|
2019-01-16 16:05:48 +00:00
|
|
|
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_postgres.yml"
|
|
|
|
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
|
2022-11-25 14:02:51 +00:00
|
|
|
- install-postgres
|
2019-01-12 15:53:00 +00:00
|
|
|
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_postgres.yml"
|
|
|
|
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.
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
|
|
|
|
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`.
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/import_generic_sqlite_db.yml"
|
|
|
|
when: run_postgres_import_sqlite_db | bool
|
2020-12-14 00:23:29 +00:00
|
|
|
tags:
|
|
|
|
- import-generic-sqlite-db
|
|
|
|
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
|
|
|
|
when: run_postgres_upgrade | bool
|
2019-01-12 15:53:00 +00:00
|
|
|
tags:
|
|
|
|
- upgrade-postgres
|
2019-07-08 06:38:24 +00:00
|
|
|
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/run_vacuum.yml"
|
|
|
|
when: run_postgres_vacuum | bool
|
2019-07-08 06:38:24 +00:00
|
|
|
tags:
|
|
|
|
- run-postgres-vacuum
|