Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

28 wiersze
1.3 KiB

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