Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

29 строки
1.1 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if no configurations specified
  6. ansible.builtin.fail:
  7. msg: >-
  8. You need to define at least one configuration in `matrix_dynamic_dns_domain_configurations` for using matrix-dynamic-dns.
  9. when: "matrix_dynamic_dns_domain_configurations | length == 0"
  10. - name: Fail if required settings not defined in configuration blocks
  11. ansible.builtin.fail:
  12. msg: >-
  13. One of the configurations in matrix_dynamic_dns_domain_configurations is missing a required key (domain, provider, protocol).
  14. when: "'domain' not in configuration or 'provider' not in configuration or 'protocol' not in configuration"
  15. with_items: "{{ matrix_dynamic_dns_domain_configurations }}"
  16. loop_control:
  17. loop_var: configuration
  18. - name: Fail if required mautrix-dynamic-dns settings not defined
  19. ansible.builtin.fail:
  20. msg: >-
  21. You need to define a required configuration setting (`{{ item.name }}`).
  22. when: "item.when | bool and vars[item.name] == ''"
  23. with_items:
  24. - {'name': 'matrix_dynamic_dns_container_network', when: true}