소스 검색

Notify of remaining matrix-postgres local data in a better way

pull/816/head
Slavi Pantaleev 5 년 전
부모
커밋
a2422c458a
1개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. +11
    -3
      roles/matrix-postgres/tasks/setup_postgres.yml

+ 11
- 3
roles/matrix-postgres/tasks/setup_postgres.yml 파일 보기

@@ -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:
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."

- name: Inject warning if matrix-postgres local data remains
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


불러오는 중...
취소
저장