Matrix Docker Ansible eploy
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

36 linhas
1.8 KiB

  1. ---
  2. - name: Fail if required Chatgpt settings not defined
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item.name }}`).
  6. when: "item.when | bool and vars[item.name] == ''"
  7. with_items:
  8. - {'name': 'matrix_bot_chatgpt_openai_api_key', when: true}
  9. - {'name': 'matrix_bot_chatgpt_matrix_bot_username', when: true}
  10. - name: Fail if OpenAI configuration not up-to-date.
  11. ansible.builtin.fail:
  12. msg: >-
  13. Your configuration contains a varible that is no longer used.
  14. Please change your configuration to remove the variable (`{{ item.name }}`).
  15. when: "item.name in vars"
  16. with_items:
  17. - {'name': 'matrix_bot_chatgpt_openai_email'}
  18. - {'name': 'matrix_bot_chatgpt_openai_password'}
  19. - {'name': 'matrix_bot_chatgpt_openai_login_type'}
  20. - name: (Deprecation) Catch and report renamed ChatGPT settings
  21. ansible.builtin.fail:
  22. msg: >-
  23. Your configuration contains a variable, which now has a different name.
  24. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  25. when: "item.old in vars"
  26. with_items:
  27. - {'old': 'matrix_bot_chatgpt_docker_image', 'new': 'matrix_bot_chatgpt_container_image'}
  28. - {'old': 'matrix_bot_chatgpt_docker_image_name_prefix', 'new': 'matrix_bot_chatgpt_container_image_name_prefix'}
  29. - {'old': 'matrix_bot_chatgpt_docker_image_force_pull', 'new': 'matrix_bot_chatgpt_container_image_force_pull'}
  30. - {'old': 'matrix_bot_chatgpt_docker_repo', 'new': 'matrix_bot_chatgpt_container_image_self_build_repo'}
  31. - {'old': 'matrix_bot_chatgpt_docker_repo_version', 'new': 'matrix_bot_chatgpt_container_image_self_build_repo_version'}
  32. - {'old': 'matrix_bot_chatgpt_docker_src_files_path', 'new': 'matrix_bot_chatgpt_container_src_path'}