Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
1.4 KiB

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