Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

34 строки
1.6 KiB

  1. # SPDX-FileCopyrightText: 2019 - 2022 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2019 - 2024 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2021 boris runakov
  4. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. - name: Fail if required appservice-slack settings not defined
  9. ansible.builtin.fail:
  10. msg: >-
  11. You need to define a required configuration setting (`{{ item.name }}`).
  12. when: "item.when | bool and vars[item.name] == ''"
  13. with_items:
  14. - {'name': 'matrix_appservice_slack_control_room_id', when: true}
  15. - {'name': 'matrix_appservice_slack_appservice_token', when: true}
  16. - {'name': 'matrix_appservice_slack_homeserver_url', when: true}
  17. - {'name': 'matrix_appservice_slack_homeserver_token', when: true}
  18. - {'name': 'matrix_appservice_slack_id_token', when: true}
  19. - {'name': 'matrix_appservice_slack_database_hostname', when: "{{ matrix_appservice_slack_database_engine == 'postgres' }}"}
  20. - {'name': 'matrix_appservice_slack_container_network', when: true}
  21. - {'name': 'matrix_appservice_slack_hostname', when: true}
  22. - {'name': 'matrix_appservice_slack_path_prefix', when: true}
  23. - name: (Deprecation) Catch and report renamed settings
  24. ansible.builtin.fail:
  25. msg: >-
  26. Your configuration contains a variable, which now has a different name.
  27. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  28. when: "item.old in vars"
  29. with_items:
  30. - {'old': 'matrix_appservice_slack_container_self_build', 'new': 'matrix_appservice_slack_container_image_self_build'}