Replace matrix_playbook_runtime_results with devture_playbook_runtime_messages_list (via com.devture.ansible.role.playbook_runtime_messages)

This commit is contained in:
Slavi Pantaleev
2022-11-04 16:19:17 +02:00
parent c3a7237de7
commit db19482d0c
11 changed files with 24 additions and 35 deletions

View File

@ -92,9 +92,9 @@
- name: Inject result
ansible.builtin.set_fact:
matrix_playbook_runtime_results: |
devture_playbook_runtime_messages_list: |
{{
matrix_playbook_runtime_results | default([])
devture_playbook_runtime_messages_list | default([])
+
[
"NOTE: Your SQLite database file has been imported into Postgres. The original file has been moved from `{{ sqlite_database_path }}` to `{{ sqlite_database_path }}.backup`. When you've confirmed that the import went well and everything works, you should be able to safely delete this file."

View File

@ -166,9 +166,9 @@
- name: Inject result
ansible.builtin.set_fact:
matrix_playbook_runtime_results: |
devture_playbook_runtime_messages_list: |
{{
matrix_playbook_runtime_results | default([])
devture_playbook_runtime_messages_list | default([])
+
[
"NOTE: Your {{ matrix_postgres_db_migration_request.engine_old }} database file has been imported into Postgres. The original database file has been moved from `{{ matrix_postgres_db_migration_request.src }}` to `{{ matrix_postgres_db_migration_request.src }}.backup`. When you've confirmed that the import went well and everything works, you should be able to safely delete this file."

View File

@ -25,9 +25,9 @@
- name: Inject warning if on an old version of Postgres
ansible.builtin.set_fact:
matrix_playbook_runtime_results: |
devture_playbook_runtime_messages_list: |
{{
matrix_playbook_runtime_results | default([])
devture_playbook_runtime_messages_list | default([])
+
[
"NOTE: Your setup is on an old Postgres version ({{ matrix_postgres_docker_image_to_use }}), while {{ matrix_postgres_docker_image_latest }} is supported. You can upgrade using --tags=upgrade-postgres"
@ -146,9 +146,9 @@
- name: Inject warning if backup data remains
ansible.builtin.set_fact:
matrix_playbook_runtime_results: |
devture_playbook_runtime_messages_list: |
{{
matrix_playbook_runtime_results | default([])
devture_playbook_runtime_messages_list | default([])
+
[
"NOTE: You have some Postgres backup data in `{{ matrix_postgres_data_path }}-auto-upgrade-backup`, which was created during the last major Postgres update you ran. If your setup works well after this upgrade, feel free to delete this whole directory."
@ -194,9 +194,9 @@
# We just want to notify the user. Deleting data is too destructive.
- name: Inject warning if matrix-postgres local data remains
ansible.builtin.set_fact:
matrix_playbook_runtime_results: |
devture_playbook_runtime_messages_list: |
{{
matrix_playbook_runtime_results | default([])
devture_playbook_runtime_messages_list | 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."