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

45 строки
2.2 KiB

  1. # SPDX-FileCopyrightText: 2023 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2023 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Fail if required Chatgpt settings not defined
  8. ansible.builtin.fail:
  9. msg: >-
  10. You need to define a required configuration setting (`{{ item.name }}`).
  11. when: "item.when | bool and vars[item.name] == ''"
  12. with_items:
  13. - {'name': 'matrix_bot_chatgpt_openai_api_key', when: true}
  14. - {'name': 'matrix_bot_chatgpt_matrix_bot_username', when: true}
  15. - {'name': 'matrix_bot_chatgpt_container_network', when: true}
  16. - {'name': 'matrix_bot_chatgpt_matrix_homeserver_url', when: true}
  17. - name: Fail if OpenAI configuration not up-to-date.
  18. ansible.builtin.fail:
  19. msg: >-
  20. Your configuration contains a variable that is no longer used.
  21. Please change your configuration to remove the variable (`{{ item.name }}`).
  22. when: "item.name in vars"
  23. with_items:
  24. - {'name': 'matrix_bot_chatgpt_openai_email'}
  25. - {'name': 'matrix_bot_chatgpt_openai_password'}
  26. - {'name': 'matrix_bot_chatgpt_openai_login_type'}
  27. - name: (Deprecation) Catch and report renamed ChatGPT settings
  28. ansible.builtin.fail:
  29. msg: >-
  30. Your configuration contains a variable, which now has a different name.
  31. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  32. when: "item.old in vars"
  33. with_items:
  34. - {'old': 'matrix_bot_chatgpt_docker_image', 'new': 'matrix_bot_chatgpt_container_image'}
  35. - {'old': 'matrix_bot_chatgpt_docker_image_name_prefix', 'new': 'matrix_bot_chatgpt_container_image_name_prefix'}
  36. - {'old': 'matrix_bot_chatgpt_docker_image_force_pull', 'new': 'matrix_bot_chatgpt_container_image_force_pull'}
  37. - {'old': 'matrix_bot_chatgpt_docker_repo', 'new': 'matrix_bot_chatgpt_container_image_self_build_repo'}
  38. - {'old': 'matrix_bot_chatgpt_docker_repo_version', 'new': 'matrix_bot_chatgpt_container_image_self_build_repo_version'}
  39. - {'old': 'matrix_bot_chatgpt_docker_src_files_path', 'new': 'matrix_bot_chatgpt_container_src_path'}
  40. - {'old': 'matrix_bot_chatgpt_container_image_name_prefix', 'new': 'matrix_bot_chatgpt_container_image_registry_prefix'}