Add warnings about using Borg backup with external Postgres

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1982
This commit is contained in:
Slavi Pantaleev
2022-07-26 17:31:06 +03:00
parent 9c15474d94
commit 10a5b0d831
2 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,12 @@
# This utility is intentionally not in `tasks/util`, because if it were, it wouldn't be possible
# to include it in other roles via the import_role module: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/import_role_module.html
- name: Fail detection if expectation fails (Postgres not enabled)
ansible.builtin.fail:
msg: "Trying to detect the version of the built-in Postgres server, but Postgres installation is not enabled (`matrix_postgres_enabled: false`)"
when: not matrix_postgres_enabled
- name: Initialize Postgres version determination variables (default to empty)
ansible.builtin.set_fact:
matrix_postgres_detection_pg_version_path: "{{ matrix_postgres_data_path }}/PG_VERSION"