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.
 
 

41 wiersze
2.5 KiB

  1. # SPDX-FileCopyrightText: 2023 Johan Swetzén
  2. # SPDX-FileCopyrightText: 2024 Slavi Pantaleev
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: (Deprecation) Catch and report renamed Mautrix Wsproxy settings
  7. ansible.builtin.fail:
  8. msg: >-
  9. Your configuration contains a variable, which now has a different name.
  10. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  11. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  12. with_items:
  13. - {'old': 'matrix_mautrix_wsproxy_docker_image', 'new': 'matrix_mautrix_wsproxy_container_image'}
  14. - {'old': 'matrix_mautrix_wsproxy_docker_image_force_pull', 'new': 'matrix_mautrix_wsproxy_container_image_force_pull'}
  15. - {'old': 'matrix_mautrix_wsproxy_docker_image_registry_prefix', 'new': 'matrix_mautrix_wsproxy_container_image_registry_prefix'}
  16. - {'old': 'matrix_mautrix_wsproxy_docker_image_registry_prefix_upstream', 'new': 'matrix_mautrix_wsproxy_container_image_registry_prefix_upstream'}
  17. - {'old': 'matrix_mautrix_wsproxy_docker_image_registry_prefix_upstream_default', 'new': 'matrix_mautrix_wsproxy_container_image_registry_prefix_upstream_default'}
  18. - {'old': 'matrix_mautrix_wsproxy_syncproxy_docker_image', 'new': 'matrix_mautrix_wsproxy_syncproxy_container_image'}
  19. - {'old': 'matrix_mautrix_wsproxy_syncproxy_docker_image_force_pull', 'new': 'matrix_mautrix_wsproxy_syncproxy_container_image_force_pull'}
  20. - {'old': 'matrix_mautrix_wsproxy_container_image_force_pull', 'new': '<removed> (the new community.docker.docker_image_pull module handles this natively)'}
  21. - {'old': 'matrix_mautrix_wsproxy_syncproxy_container_image_force_pull', 'new': '<removed> (the new community.docker.docker_image_pull module handles this natively)'}
  22. - name: Fail if required settings not defined
  23. ansible.builtin.fail:
  24. msg: >-
  25. You need to define a required configuration setting (`{{ item }}`).
  26. when: "lookup('vars', item, default='') == ''"
  27. with_items:
  28. - "matrix_mautrix_androidsms_appservice_token"
  29. - "matrix_mautrix_androidsms_homeserver_token"
  30. - "matrix_mautrix_imessage_appservice_token"
  31. - "matrix_mautrix_imessage_homeserver_token"
  32. - "matrix_mautrix_wsproxy_homeserver_address"
  33. - "matrix_mautrix_wsproxy_syncproxy_shared_secret"
  34. - "matrix_mautrix_wsproxy_syncproxy_homeserver_url"
  35. - "matrix_mautrix_wsproxy_syncproxy_database_hostname"
  36. - "matrix_mautrix_wsproxy_syncproxy_database_password"