Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

24 行
982 B

  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']"