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.
 
 

28 rivejä
1.2 KiB

  1. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2022 Vladimir Panteleev
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Fail if required go-skype-bridge settings not defined
  7. ansible.builtin.fail:
  8. msg: >-
  9. You need to define a required configuration setting (`{{ item.name }}`).
  10. when: "item.when | bool and vars[item.name] == ''"
  11. with_items:
  12. - {'name': 'matrix_go_skype_bridge_appservice_token', when: true}
  13. - {'name': 'matrix_go_skype_bridge_homeserver_address', when: true}
  14. - {'name': 'matrix_go_skype_bridge_homeserver_token', when: true}
  15. - {'name': 'matrix_go_skype_bridge_database_hostname', when: "{{ matrix_go_skype_bridge_database_engine == 'postgres' }}"}
  16. - {'name': 'matrix_go_skype_bridge_container_network', when: true}
  17. - name: (Deprecation) Catch and report renamed go-skype-bridge variables
  18. ansible.builtin.fail:
  19. msg: >-
  20. Your configuration contains a variable, which now has a different name.
  21. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  22. when: "item.old in vars"
  23. with_items:
  24. - {'old': 'matrix_go_skype_bridge_docker_image_name_prefix', 'new': 'matrix_go_skype_bridge_docker_image_registry_prefix'}