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.
 
 

38 linhas
1.9 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': 'matrix_bot_chatgpt_container_network', when: true}
  11. - {'name': 'matrix_bot_chatgpt_matrix_homeserver_url', when: true}
  12. - name: Fail if OpenAI configuration not up-to-date.
  13. ansible.builtin.fail:
  14. msg: >-
  15. Your configuration contains a varible that is no longer used.
  16. Please change your configuration to remove the variable (`{{ item.name }}`).
  17. when: "item.name in vars"
  18. with_items:
  19. - {'name': 'matrix_bot_chatgpt_openai_email'}
  20. - {'name': 'matrix_bot_chatgpt_openai_password'}
  21. - {'name': 'matrix_bot_chatgpt_openai_login_type'}
  22. - name: (Deprecation) Catch and report renamed ChatGPT settings
  23. ansible.builtin.fail:
  24. msg: >-
  25. Your configuration contains a variable, which now has a different name.
  26. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  27. when: "item.old in vars"
  28. with_items:
  29. - {'old': 'matrix_bot_chatgpt_docker_image', 'new': 'matrix_bot_chatgpt_container_image'}
  30. - {'old': 'matrix_bot_chatgpt_docker_image_name_prefix', 'new': 'matrix_bot_chatgpt_container_image_name_prefix'}
  31. - {'old': 'matrix_bot_chatgpt_docker_image_force_pull', 'new': 'matrix_bot_chatgpt_container_image_force_pull'}
  32. - {'old': 'matrix_bot_chatgpt_docker_repo', 'new': 'matrix_bot_chatgpt_container_image_self_build_repo'}
  33. - {'old': 'matrix_bot_chatgpt_docker_repo_version', 'new': 'matrix_bot_chatgpt_container_image_self_build_repo_version'}
  34. - {'old': 'matrix_bot_chatgpt_docker_src_files_path', 'new': 'matrix_bot_chatgpt_container_src_path'}