Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
1008 B

  1. # SPDX-FileCopyrightText: 2024 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2024 Slavi Pantaleev
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Fail if required matrix-bot-draupnir variables are undefined
  7. ansible.builtin.fail:
  8. msg: "The `{{ item }}` variable must be defined and have a non-null value."
  9. with_items:
  10. - "matrix_appservice_draupnir_for_all_master_control_room_alias"
  11. - "matrix_bot_draupnir_container_network"
  12. when: "vars[item] == '' or vars[item] is none"
  13. - name: (Deprecation) Catch and report renamed matrix-appservice-draupnir-for-all settings
  14. ansible.builtin.fail:
  15. msg: >-
  16. Your configuration contains a variable, which now has a different name.
  17. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  18. when: "item.old in vars"
  19. with_items:
  20. - {'old': 'matrix_appservice_draupnir_for_all_docker_image_name_prefix', 'new': 'matrix_appservice_draupnir_for_all_docker_image_registry_prefix'}