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.5 KiB

  1. # SPDX-FileCopyrightText: 2019 - 2022 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2019 - 2024 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2021 boris runakov
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Fail if required appservice-slack settings not defined
  8. ansible.builtin.fail:
  9. msg: >-
  10. You need to define a required configuration setting (`{{ item.name }}`).
  11. when: "item.when | bool and vars[item.name] == ''"
  12. with_items:
  13. - {'name': 'matrix_appservice_slack_control_room_id', when: true}
  14. - {'name': 'matrix_appservice_slack_appservice_token', when: true}
  15. - {'name': 'matrix_appservice_slack_homeserver_url', when: true}
  16. - {'name': 'matrix_appservice_slack_homeserver_token', when: true}
  17. - {'name': 'matrix_appservice_slack_id_token', when: true}
  18. - {'name': 'matrix_appservice_slack_database_hostname', when: "{{ matrix_appservice_slack_database_engine == 'postgres' }}"}
  19. - {'name': 'matrix_appservice_slack_container_network', when: true}
  20. - {'name': 'matrix_appservice_slack_hostname', when: true}
  21. - {'name': 'matrix_appservice_slack_path_prefix', when: true}
  22. - name: (Deprecation) Catch and report renamed settings
  23. ansible.builtin.fail:
  24. msg: >-
  25. Your configuration contains a variable, which now has a different name.
  26. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  27. when: "item.old in vars"
  28. with_items:
  29. - {'old': 'matrix_appservice_slack_container_self_build', 'new': 'matrix_appservice_slack_container_image_self_build'}