Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 rivejä
1.3 KiB

  1. # SPDX-FileCopyrightText: 2020 - 2024 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if required matrix-registration settings not defined
  6. ansible.builtin.fail:
  7. msg: >
  8. You need to define a required configuration setting (`{{ item.name }}`).
  9. when: "item.when | bool and vars[item.name] == ''"
  10. with_items:
  11. - {'name': 'matrix_registration_hostname', when: true}
  12. - {'name': 'matrix_registration_path_prefix', when: true}
  13. - {'name': 'matrix_registration_container_network', when: true}
  14. - {'name': 'matrix_registration_shared_secret', when: true}
  15. - {'name': 'matrix_registration_admin_secret', when: true}
  16. - {'name': 'matrix_registration_server_location', when: true}
  17. - {'name': 'matrix_registration_database_hostname', when: "{{ matrix_registration_database_engine == 'postgres' }}"}
  18. - name: (Deprecation) Catch and report renamed settings
  19. ansible.builtin.fail:
  20. msg: >-
  21. Your configuration contains a variable, which now has a different name.
  22. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  23. when: "item.old in vars"
  24. with_items:
  25. - {'old': 'matrix_registration_docker_repo', 'new': 'matrix_registration_container_image_self_build_repo'}
  26. - {'old': 'matrix_registration_public_endpoint', 'new': 'matrix_registration_path_prefix'}