2025-02-25 02:08:39 +09:00
|
|
|
# SPDX-FileCopyrightText: 2019 - 2024 Slavi Pantaleev
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2019-08-05 13:06:49 +03:00
|
|
|
---
|
|
|
|
|
2025-01-26 20:43:57 +09:00
|
|
|
- name: Fail if no Email2Matrix mappings
|
2022-07-18 10:39:08 +03:00
|
|
|
ansible.builtin.fail:
|
2019-08-05 13:06:49 +03:00
|
|
|
msg: >
|
|
|
|
You need to define at least one mapping in `matrix_email2matrix_matrix_mappings` for enabling Email2Matrix.
|
2022-09-18 12:21:09 +03:00
|
|
|
when: "matrix_email2matrix_matrix_mappings | length == 0"
|
2024-01-13 17:05:58 +02:00
|
|
|
|
2025-01-26 20:43:57 +09:00
|
|
|
- name: Fail if required Email2Matrix settings not defined
|
2024-01-13 17:05:58 +02:00
|
|
|
ansible.builtin.fail:
|
|
|
|
msg: >-
|
|
|
|
You need to define a required configuration setting (`{{ item.name }}`).
|
|
|
|
when: "item.when | bool and vars[item.name] == ''"
|
|
|
|
with_items:
|
|
|
|
- {'name': 'matrix_email2matrix_container_network', when: true}
|
2025-02-24 07:59:37 +02:00
|
|
|
|
|
|
|
- name: (Deprecation) Catch and report renamed Email2Matrix variables
|
|
|
|
ansible.builtin.fail:
|
|
|
|
msg: >-
|
|
|
|
The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
|
|
|
|
when: "item.old in vars"
|
|
|
|
with_items:
|
|
|
|
- {'old': 'matrix_email2matrix_docker_image_name_prefix', 'new': 'matrix_email2matrix_docker_image_registry_prefix'}
|