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.
 
 

26 lignes
996 B

  1. # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if a Meowlnir management room definition lacks required fields
  6. ansible.builtin.fail:
  7. msg: >-
  8. A `management_rooms` entry for the Meowlnir bot `{{ bot.username }}` is missing the
  9. `{{ item }}` field. All fields are required on every entry.
  10. Offending definition: {{ management_room | to_json }}
  11. when: "item not in management_room"
  12. with_items:
  13. - id
  14. - encrypted
  15. - name: Fail if a Meowlnir management room ID does not look like a room ID
  16. ansible.builtin.fail:
  17. msg: >-
  18. A `management_rooms` entry for the Meowlnir bot `{{ bot.username }}` has an `id` of
  19. `{{ management_room.id }}`, which does not look like a room ID.
  20. It needs to be a room ID (`!qporfwt:example.com`), not a room alias or a matrix.to URL.
  21. You can find it in Element Web under the room's Settings -> Advanced.
  22. when: "not management_room.id.startswith('!')"