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.

32 lines
1.2 KiB

  1. # SPDX-FileCopyrightText: 2020 Björn Marten
  2. # SPDX-FileCopyrightText: 2021 boris runakov
  3. # SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Fail if required matrix-appservice-webhooks settings not defined
  8. ansible.builtin.fail:
  9. msg: >-
  10. You need to define a required configuration setting (`{{ item }}`).
  11. when: "vars[item] == ''"
  12. with_items:
  13. - matrix_appservice_webhooks_appservice_token
  14. - matrix_appservice_webhooks_homeserver_url
  15. - matrix_appservice_webhooks_homeserver_token
  16. - matrix_appservice_webhooks_id_token
  17. - matrix_appservice_webhooks_api_secret
  18. - matrix_appservice_webhooks_container_network
  19. - matrix_appservice_webhooks_hostname
  20. - matrix_appservice_webhooks_path_prefix
  21. - name: (Deprecation) Catch and report renamed appservice-webhooks variables
  22. ansible.builtin.fail:
  23. msg: >-
  24. Your configuration contains a variable, which now has a different name.
  25. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  26. when: "item.old in vars"
  27. with_items:
  28. - {'old': 'matrix_appservice_webhooks_docker_image_name_prefix', 'new': 'matrix_appservice_webhooks_docker_image_registry_prefix'}