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

30 строки
1.5 KiB

  1. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: (Deprecation) Catch and report renamed Buscarron settings
  7. ansible.builtin.fail:
  8. msg: >-
  9. Your configuration contains a variable, which now has a different name.
  10. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  11. when: "item.old in vars"
  12. with_items:
  13. - {'old': 'matrix_bot_buscarron_noencryption', 'new': '<removed>'}
  14. - {'old': 'matrix_bot_buscarron_spam_hosts', 'new': '<superseded by matrix_bot_buscarron_spamlist>'}
  15. - {'old': 'matrix_bot_buscarron_spam_emails', 'new': '<superseded by matrix_bot_buscarron_spamlist>'}
  16. - {'old': 'matrix_bot_buscarron_spam_localparts', 'new': '<superseded by matrix_bot_buscarron_spamlist>'}
  17. - {'old': 'matrix_bot_buscarron_container_image_name_prefix', 'new': 'matrix_bot_buscarron_container_image_registry_prefix'}
  18. - name: Fail if required Buscarron settings not defined
  19. ansible.builtin.fail:
  20. msg: >-
  21. You need to define a required configuration setting (`{{ item.name }}`).
  22. when: "item.when | bool and vars[item.name] == ''"
  23. with_items:
  24. - {'name': 'matrix_bot_buscarron_password', when: true}
  25. - {'name': 'matrix_bot_buscarron_hostname', when: true}
  26. - {'name': 'matrix_bot_buscarron_database_hostname', when: "{{ matrix_bot_buscarron_database_engine == 'postgres' }}"}
  27. - {'name': 'matrix_bot_buscarron_homeserver', when: true}