Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

33 righe
1.4 KiB

  1. # SPDX-FileCopyrightText: 2020 Björn Marten
  2. # SPDX-FileCopyrightText: 2021 boris runakov
  3. # SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. - name: Fail if required matrix-appservice-webhooks settings not defined
  9. ansible.builtin.fail:
  10. msg: >-
  11. You need to define a required configuration setting (`{{ item }}`).
  12. when: "vars[item] == ''"
  13. with_items:
  14. - matrix_appservice_webhooks_appservice_token
  15. - matrix_appservice_webhooks_homeserver_url
  16. - matrix_appservice_webhooks_homeserver_token
  17. - matrix_appservice_webhooks_id_token
  18. - matrix_appservice_webhooks_api_secret
  19. - matrix_appservice_webhooks_container_network
  20. - matrix_appservice_webhooks_hostname
  21. - matrix_appservice_webhooks_path_prefix
  22. - name: (Deprecation) Catch and report renamed appservice-webhooks variables
  23. ansible.builtin.fail:
  24. msg: >-
  25. Your configuration contains a variable, which now has a different name.
  26. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  27. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  28. with_items:
  29. - {'old': 'matrix_appservice_webhooks_docker_image_name_prefix', 'new': 'matrix_appservice_webhooks_docker_image_registry_prefix'}