2019-06-07 14:04:59 +03:00
---
- name : Fail if required settings not defined
2022-07-18 10:39:08 +03:00
ansible.builtin.fail :
2019-06-07 14:04:59 +03:00
msg : >-
You need to define a required configuration setting (`{{ item }}`).
when : "vars[item] == ''"
with_items :
2022-03-08 18:19:28 +01:00
- "matrix_mautrix_facebook_public_endpoint"
2019-06-07 14:04:59 +03:00
- "matrix_mautrix_facebook_appservice_token"
- "matrix_mautrix_facebook_homeserver_token"
2021-01-20 10:12:51 +02:00
2022-09-27 11:38:33 +03:00
- when : "matrix_mautrix_facebook_database_engine == 'sqlite' and matrix_mautrix_facebook_docker_image.endswith(':da1b4ec596e334325a1589e70829dea46e73064b')"
block :
2021-11-15 08:18:39 +02:00
- name : Inject warning if on an old SQLite-supporting version
2022-07-18 10:39:08 +03:00
ansible.builtin.set_fact :
2022-11-04 16:19:17 +02:00
devture_playbook_runtime_messages_list : |
2021-01-20 10:12:51 +02:00
{{
2022-11-04 16:19:17 +02:00
devture_playbook_runtime_messages_list | default([])
2021-01-20 10:12:51 +02:00
+
[
2021-11-15 08:18:39 +02:00
"NOTE: Your mautrix-facebook bridge is still on SQLite and on the last version that supported it, before support was dropped. Support has been subsequently re-added in v0.3.2, so we advise you to upgrade (by removing your `matrix_mautrix_facebook_docker_image` definition from vars.yml)"
2021-01-20 10:12:51 +02:00
]
}}