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.
 
 

38 righe
2.3 KiB

  1. # SPDX-FileCopyrightText: 2021 Matthew Cengia
  2. # SPDX-FileCopyrightText: 2021 Shreyas Ajjarapu
  3. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Fail if required mautrix-twitter settings not defined
  8. ansible.builtin.fail:
  9. msg: >-
  10. You need to define a required configuration setting (`{{ item.name }}`).
  11. when: "item.when | bool and vars[item.name] == ''"
  12. with_items:
  13. - {'name': 'matrix_mautrix_twitter_appservice_token', when: true}
  14. - {'name': 'matrix_mautrix_twitter_homeserver_address', when: true}
  15. - {'name': 'matrix_mautrix_twitter_homeserver_token', when: true}
  16. - {'name': 'matrix_mautrix_twitter_database_hostname', when: "{{ matrix_mautrix_twitter_database_engine == 'postgres' }}"}
  17. - {'name': 'matrix_mautrix_twitter_container_network', when: true}
  18. - {'name': 'matrix_mautrix_twitter_metrics_proxying_hostname', when: "{{ matrix_mautrix_twitter_metrics_proxying_enabled }}"}
  19. - {'name': 'matrix_mautrix_twitter_metrics_proxying_path_prefix', when: "{{ matrix_mautrix_twitter_metrics_proxying_enabled }}"}
  20. - name: (Deprecation) Catch and report renamed mautrix-twitter variables
  21. ansible.builtin.fail:
  22. msg: >-
  23. Your configuration contains a variable, which now has a different name.
  24. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  25. when: "item.old in vars"
  26. with_items:
  27. - {'old': 'matrix_mautrix_twitter_login_shared_secret', 'new': '<removed>'}
  28. - {'old': 'matrix_mautrix_twitter_appservice_database', 'new': 'matrix_mautrix_twitter_database_uri'}
  29. - {'old': 'matrix_mautrix_twitter_bridge_login_shared_secret_map', 'new': 'matrix_mautrix_twitter_double_puppet_secrets'}
  30. - {'old': 'matrix_mautrix_twitter_bridge_login_shared_secret_map_auto', 'new': 'matrix_mautrix_twitter_double_puppet_secrets_auto'}
  31. - {'old': 'matrix_mautrix_twitter_bridge_login_shared_secret_map_custom', 'new': 'matrix_mautrix_twitter_double_puppet_secrets_custom'}
  32. - {'old': 'matrix_mautrix_twitter_federate_rooms', 'new': 'matrix_mautrix_twitter_matrix_federate_rooms'}
  33. - {'old': 'matrix_mautrix_twitter_command_prefix', 'new': 'matrix_mautrix_twitter_bridge_command_prefix'}
  34. - {'old': 'matrix_mautrix_twitter_docker_image_name_prefix', 'new': 'matrix_mautrix_twitter_docker_image_registry_prefix'}