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.
 
 

26 rivejä
1011 B

  1. # SPDX-FileCopyrightText: 2022 - 2023 Julian-Samuel Gebühr
  2. # SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Fail if required settings not defined
  7. ansible.builtin.fail:
  8. msg: >-
  9. You need to define a required configuration setting (`{{ item }}`).
  10. when: "vars[item] == ''"
  11. with_items:
  12. - "matrix_bot_matrix_registration_bot_bot_password"
  13. - "matrix_bot_matrix_registration_bot_api_base_url"
  14. - name: (Deprecation) Catch and report renamed settings
  15. ansible.builtin.fail:
  16. msg: >-
  17. Your configuration contains a variable, which now has a different name.
  18. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  19. when: "item.old in vars"
  20. with_items:
  21. - {'old': 'matrix_bot_matrix_registration_bot_bot_access_token', 'new': '<removed>'}
  22. - {'old': 'matrix_bot_matrix_registration_bot_matrix_homeserver_url', 'new': 'matrix_bot_matrix_registration_bot_api_base_url'}