mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-22 12:35:51 +00:00
7afe8103da
find roles/matrix-bridge-mautrix-twitter -type f -exec sed -i \ -e 's/facebook/twitter/g' \ -e 's/Facebook/Twitter/g' \ -e 's/FB/Twitter/g' \ -e 's/fb/twitter/g' {} +
32 lines
1.5 KiB
YAML
32 lines
1.5 KiB
YAML
---
|
|
|
|
- name: Fail if required settings not defined
|
|
fail:
|
|
msg: >-
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
when: "vars[item] == ''"
|
|
with_items:
|
|
- "matrix_mautrix_twitter_appservice_token"
|
|
- "matrix_mautrix_twitter_homeserver_token"
|
|
|
|
- block:
|
|
- name: Fail if on SQLite, unless on the last version supporting SQLite
|
|
fail:
|
|
msg: >-
|
|
You're trying to use the mautrix-twitter bridge with an SQLite database.
|
|
Going forward, this bridge only supports Postgres.
|
|
To learn more about this, see our changelog: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#breaking-change-the-mautrix-twitter-bridge-now-requires-a-postgres-database
|
|
when: "not matrix_mautrix_twitter_docker_image.endswith(':da1b4ec596e334325a1589e70829dea46e73064b')"
|
|
|
|
- name: Inject warning if still on SQLite
|
|
set_fact:
|
|
matrix_playbook_runtime_results: |
|
|
{{
|
|
matrix_playbook_runtime_results|default([])
|
|
+
|
|
[
|
|
"NOTE: Your mautrix-twitter bridge setup is still on SQLite. Your bridge is not getting any updates and will likely stop working at some point. To learn more about this, see our changelog: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#breaking-change-the-mautrix-twitter-bridge-now-requires-a-postgres-database"
|
|
]
|
|
}}
|
|
when: "matrix_mautrix_twitter_database_engine == 'sqlite'"
|