Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

27 lignes
1.2 KiB

  1. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  3. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Fail if required Postmoogle 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 lookup('vars', item.name, default='') | string | length == 0"
  12. with_items:
  13. - {'name': 'matrix_postmoogle_password', when: true}
  14. - {'name': 'matrix_postmoogle_container_network', when: true}
  15. - {'name': 'matrix_postmoogle_homeserver', when: true}
  16. - {'name': 'matrix_postmoogle_database_hostname', when: "{{ matrix_postmoogle_database_engine == 'postgres' }}"}
  17. - name: (Deprecation) Catch and report renamed Postmoogle variables
  18. ansible.builtin.fail:
  19. msg: >-
  20. The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
  21. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  22. with_items:
  23. - {'old': 'matrix_postmoogle_docker_image_name_prefix', 'new': 'matrix_postmoogle_docker_image_registry_prefix'}