Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

36 righe
2.0 KiB

  1. # SPDX-FileCopyrightText: 2019 Thomas Kuehne
  2. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  4. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  5. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  6. #
  7. # SPDX-License-Identifier: AGPL-3.0-or-later
  8. ---
  9. - name: Fail if required mautrix-whatsapp settings not defined
  10. ansible.builtin.fail:
  11. msg: >-
  12. You need to define a required configuration setting (`{{ item.name }}`).
  13. when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
  14. with_items:
  15. - {'name': 'matrix_mautrix_whatsapp_appservice_token', when: true}
  16. - {'name': 'matrix_mautrix_whatsapp_homeserver_address', when: true}
  17. - {'name': 'matrix_mautrix_whatsapp_homeserver_token', when: true}
  18. - {'name': 'matrix_mautrix_whatsapp_database_hostname', when: "{{ matrix_mautrix_whatsapp_database_engine == 'postgres' }}"}
  19. - name: (Deprecation) Catch and report renamed mautrix-whatsapp variables
  20. ansible.builtin.fail:
  21. msg: >-
  22. Your configuration contains a variable, which now has a different name.
  23. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  24. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  25. with_items:
  26. - {'old': 'matrix_mautrix_whatsapp_log_level', 'new': 'matrix_mautrix_whatsapp_logging_level'}
  27. - {'old': 'matrix_mautrix_whatsapp_login_shared_secret', 'new': '<removed>'}
  28. - {'old': 'matrix_mautrix_whatsapp_bridge_login_shared_secret_map', 'new': '<superseded by matrix_mautrix_whatsapp_double_puppet_secrets>'}
  29. - {'old': 'matrix_mautrix_whatsapp_bridge_double_puppet_server_map', 'new': '<removed>'}
  30. - {'old': 'matrix_mautrix_whatsapp_bridge_allow_user_invite', 'new': '<removed>'}
  31. - {'old': 'matrix_mautrix_whatsapp_bridge_mute_bridging', 'new': '<removed>'}
  32. - {'old': 'matrix_mautrix_whatsapp_docker_image_name_prefix', 'new': 'matrix_mautrix_whatsapp_docker_image_registry_prefix'}