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

23 строки
816 B

  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'}