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

32 строки
1.4 KiB

  1. # SPDX-FileCopyrightText: 2025 - 2026 luschmar
  2. # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Fail if required matrix-meshtastic-relay settings not defined
  7. ansible.builtin.fail:
  8. msg: >-
  9. You need to define a required configuration setting (`{{ item.name }}`).
  10. when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
  11. with_items:
  12. - {'name': 'matrix_meshtastic_relay_matrix_host', when: true}
  13. - {'name': 'matrix_meshtastic_relay_matrix_bot_password', when: true}
  14. - {'name': 'matrix_meshtastic_relay_connection_type', when: true}
  15. - name: Fail if matrix_meshtastic_relay_connection_type is invalid
  16. ansible.builtin.fail:
  17. msg: >-
  18. `matrix_meshtastic_relay_connection_type` must be one of: `tcp`, `serial`, `ble`.
  19. Got: `{{ matrix_meshtastic_relay_connection_type }}`.
  20. when: "matrix_meshtastic_relay_connection_type not in ['tcp', 'serial', 'ble']"
  21. - name: (Deprecation) Catch and report renamed matrix-meshtastic-relay variables
  22. ansible.builtin.fail:
  23. msg: >-
  24. The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
  25. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  26. with_items:
  27. - {'old': 'matrix_meshtastic_relay_container_image_force_pull', 'new': '<removed> (the new community.docker.docker_image_pull module handles this natively)'}