2019-06-07 11:04:59 +00:00
---
2024-01-02 13:56:56 +00:00
- name : (Deprecation) Catch and report renamed mautrix-facebook settings
ansible.builtin.fail :
msg : >-
Your configuration contains a variable, which now has a different name.
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
when : "item.old in vars"
with_items :
- {'old': 'matrix_mautrix_facebook_public_endpoint', 'new' : 'matrix_mautrix_facebook_appservice_public_prefix' }
2022-11-27 07:16:18 +00:00
- name : Fail if required mautrix-facebook settings not defined
2022-07-18 07:39:08 +00:00
ansible.builtin.fail :
2019-06-07 11:04:59 +00:00
msg : >-
2022-11-27 07:16:18 +00:00
You need to define a required configuration setting (`{{ item.name }}`).
when : "item.when | bool and vars[item.name] == ''"
2019-06-07 11:04:59 +00:00
with_items :
2024-01-02 13:56:56 +00:00
- {'name': 'matrix_mautrix_facebook_appservice_public_hostname', when : "{{ matrix_mautrix_facebook_appservice_public_enabled }}" }
- {'name': 'matrix_mautrix_facebook_appservice_public_prefix', when : "{{ matrix_mautrix_facebook_appservice_public_enabled }}" }
2024-01-13 14:08:47 +00:00
- {'name': 'matrix_mautrix_facebook_metrics_proxying_hostname', when : "{{ matrix_mautrix_facebook_metrics_proxying_enabled }}" }
- {'name': 'matrix_mautrix_facebook_metrics_proxying_path_prefix', when : "{{ matrix_mautrix_facebook_metrics_proxying_enabled }}" }
2022-11-27 07:16:18 +00:00
- {'name': 'matrix_mautrix_facebook_appservice_token', when : true }
- {'name': 'matrix_mautrix_facebook_homeserver_token', when : true }
2024-01-02 13:56:56 +00:00
- {'name': 'matrix_mautrix_facebook_container_network', when : true }
- {'name': 'matrix_mautrix_facebook_homeserver_address', when : true }
2022-11-27 07:16:18 +00:00
- {'name': 'matrix_mautrix_facebook_database_hostname', when : "{{ matrix_mautrix_facebook_database_engine == 'postgres' }}" }
2021-01-20 08:12:51 +00:00
2022-09-27 08:38:33 +00:00
- when : "matrix_mautrix_facebook_database_engine == 'sqlite' and matrix_mautrix_facebook_docker_image.endswith(':da1b4ec596e334325a1589e70829dea46e73064b')"
block :
2021-11-15 06:18:39 +00:00
- name : Inject warning if on an old SQLite-supporting version
2022-07-18 07:39:08 +00:00
ansible.builtin.set_fact :
2022-11-04 14:19:17 +00:00
devture_playbook_runtime_messages_list : |
2021-01-20 08:12:51 +00:00
{{
2022-11-04 14:19:17 +00:00
devture_playbook_runtime_messages_list | default([])
2021-01-20 08:12:51 +00:00
+
[
2024-10-14 17:47:38 +00: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 08:12:51 +00:00
]
}}