mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-22 12:35:51 +00:00
Notify of remaining matrix-postgres local data in a better way
This commit is contained in:
parent
1cd251ed78
commit
a2422c458a
@ -155,9 +155,17 @@
|
|||||||
when: "not matrix_postgres_enabled|bool"
|
when: "not matrix_postgres_enabled|bool"
|
||||||
|
|
||||||
# We just want to notify the user. Deleting data is too destructive.
|
# We just want to notify the user. Deleting data is too destructive.
|
||||||
- name: Notify if matrix-postgres local data remains
|
|
||||||
debug:
|
- name: Inject warning if matrix-postgres local data remains
|
||||||
msg: "Note: You are not using a local PostgreSQL database, but some old data remains from before in `{{ matrix_postgres_data_path }}`. Feel free to delete it."
|
set_fact:
|
||||||
|
matrix_playbook_runtime_results: |
|
||||||
|
{{
|
||||||
|
matrix_playbook_runtime_results|default([])
|
||||||
|
+
|
||||||
|
[
|
||||||
|
"NOTE: You are not using a local PostgreSQL database, but some old data remains from before in `{{ matrix_postgres_data_path }}`. Feel free to delete it."
|
||||||
|
]
|
||||||
|
}}
|
||||||
when: "not matrix_postgres_enabled|bool and matrix_postgres_data_path_stat.stat.exists"
|
when: "not matrix_postgres_enabled|bool and matrix_postgres_data_path_stat.stat.exists"
|
||||||
|
|
||||||
- name: Remove Postgres scripts
|
- name: Remove Postgres scripts
|
||||||
|
Loading…
Reference in New Issue
Block a user