Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
1.0 KiB

  1. # SPDX-FileCopyrightText: 2019 - 2024 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if no Email2Matrix mappings
  6. ansible.builtin.fail:
  7. msg: >
  8. You need to define at least one mapping in `matrix_email2matrix_matrix_mappings` for enabling Email2Matrix.
  9. when: "matrix_email2matrix_matrix_mappings | length == 0"
  10. - name: Fail if required Email2Matrix settings not defined
  11. ansible.builtin.fail:
  12. msg: >-
  13. You need to define a required configuration setting (`{{ item.name }}`).
  14. when: "item.when | bool and vars[item.name] == ''"
  15. with_items:
  16. - {'name': 'matrix_email2matrix_container_network', when: true}
  17. - name: (Deprecation) Catch and report renamed Email2Matrix variables
  18. ansible.builtin.fail:
  19. msg: >-
  20. The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
  21. when: "item.old in vars"
  22. with_items:
  23. - {'old': 'matrix_email2matrix_docker_image_name_prefix', 'new': 'matrix_email2matrix_docker_image_registry_prefix'}