2025-02-27 09:32:00 +00:00
|
|
|
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2024-03-24 16:25:19 +00:00
|
|
|
---
|
|
|
|
|
2025-02-24 05:59:37 +00:00
|
|
|
- name: Fail if required Pantalaimon variables are undefined
|
2024-03-24 16:25:19 +00:00
|
|
|
ansible.builtin.fail:
|
|
|
|
msg: "The `{{ item }}` variable must be defined and have a non-null value."
|
|
|
|
with_items:
|
|
|
|
- "matrix_pantalaimon_homeserver_url"
|
|
|
|
when: "vars[item] == '' or vars[item] is none"
|
2025-02-24 05:59:37 +00:00
|
|
|
|
|
|
|
- name: (Deprecation) Catch and report renamed Pantalaimon 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_pantalaimon_docker_image_name_prefix', 'new': 'matrix_pantalaimon_docker_image_registry_prefix'}
|