mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-03-06 05:40:49 +00:00

This: - brings consistency - no more mixing `_name_prefix` and `_registry_prefix` - adds extensibility - a future patch will allow reconfiguring all registry prefixes for all roles in the playbook We still have `_docker_` vs `_container_` inconsistencies. These may be worked on later.
19 lines
856 B
YAML
19 lines
856 B
YAML
---
|
|
|
|
- name: Fail if required matrix-bot-draupnir variables are undefined
|
|
ansible.builtin.fail:
|
|
msg: "The `{{ item }}` variable must be defined and have a non-null value."
|
|
with_items:
|
|
- "matrix_appservice_draupnir_for_all_master_control_room_alias"
|
|
- "matrix_bot_draupnir_container_network"
|
|
when: "vars[item] == '' or vars[item] is none"
|
|
|
|
- name: (Deprecation) Catch and report renamed matrix-appservice-draupnir-for-all 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_appservice_draupnir_for_all_docker_image_name_prefix', 'new': 'matrix_appservice_draupnir_for_all_docker_image_registry_prefix'}
|