Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

37 satır
2.3 KiB

  1. # SPDX-FileCopyrightText: 2020 - 2024 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: (Deprecation) Catch and report renamed 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_registration_docker_repo', 'new': 'matrix_registration_container_image_self_build_repo'}
  14. - {'old': 'matrix_registration_public_endpoint', 'new': 'matrix_registration_path_prefix'}
  15. - {'old': 'matrix_registration_docker_image', 'new': 'matrix_registration_container_image'}
  16. - {'old': 'matrix_registration_docker_image_force_pull', 'new': 'matrix_registration_container_image_force_pull'}
  17. - {'old': 'matrix_registration_docker_image_registry_prefix', 'new': 'matrix_registration_container_image_registry_prefix'}
  18. - {'old': 'matrix_registration_docker_image_registry_prefix_upstream', 'new': 'matrix_registration_container_image_registry_prefix_upstream'}
  19. - {'old': 'matrix_registration_docker_image_registry_prefix_upstream_default', 'new': 'matrix_registration_container_image_registry_prefix_upstream_default'}
  20. - {'old': 'matrix_registration_docker_src_files_path', 'new': 'matrix_registration_container_src_files_path'}
  21. - name: Fail if required matrix-registration settings not defined
  22. ansible.builtin.fail:
  23. msg: >
  24. You need to define a required configuration setting (`{{ item.name }}`).
  25. when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
  26. with_items:
  27. - {'name': 'matrix_registration_hostname', when: true}
  28. - {'name': 'matrix_registration_path_prefix', when: true}
  29. - {'name': 'matrix_registration_container_network', when: true}
  30. - {'name': 'matrix_registration_shared_secret', when: true}
  31. - {'name': 'matrix_registration_admin_secret', when: true}
  32. - {'name': 'matrix_registration_server_location', when: true}
  33. - {'name': 'matrix_registration_database_hostname', when: "{{ matrix_registration_database_engine == 'postgres' }}"}