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.
 
 
 

40 lines
2.3 KiB

  1. # SPDX-FileCopyrightText: 2026 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2026 Nikita Chernyi
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: (Deprecation) Catch and report renamed settings
  7. ansible.builtin.fail:
  8. msg: >-
  9. Your configuration contains a variable, which now has a different name.
  10. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  11. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  12. with_items: []
  13. - name: Fail if required mautrix-linkedin settings not defined
  14. ansible.builtin.fail:
  15. msg: >-
  16. You need to define a required configuration setting (`{{ item.name }}`).
  17. when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
  18. with_items:
  19. - {'name': 'matrix_bridge_mautrix_linkedin_appservice_token', when: true}
  20. - {'name': 'matrix_bridge_mautrix_linkedin_homeserver_address', when: true}
  21. - {'name': 'matrix_bridge_mautrix_linkedin_homeserver_token', when: true}
  22. - {'name': 'matrix_bridge_mautrix_linkedin_database_hostname', when: "{{ matrix_bridge_mautrix_linkedin_database_engine == 'postgres' }}"}
  23. - {'name': 'matrix_bridge_mautrix_linkedin_metrics_proxying_hostname', when: "{{ matrix_bridge_mautrix_linkedin_metrics_proxying_enabled }}"}
  24. - {'name': 'matrix_bridge_mautrix_linkedin_metrics_proxying_path_prefix', when: "{{ matrix_bridge_mautrix_linkedin_metrics_proxying_enabled }}"}
  25. - {'name': 'matrix_bridge_mautrix_linkedin_container_network', when: true}
  26. - name: Fail if the deprecated beeper-linkedin bridge is also enabled
  27. ansible.builtin.fail:
  28. msg: >-
  29. Both `matrix_bridge_beeper_linkedin_enabled` and `matrix_bridge_mautrix_linkedin_enabled` are set.
  30. Both register `@linkedinbot` and the `@linkedin_*` user range as exclusive appservice namespaces,
  31. so running them together makes homeserver event routing for those users ambiguous and lets one
  32. bridge act as the other's puppets. Disable the deprecated beeper-linkedin bridge
  33. (`matrix_bridge_beeper_linkedin_enabled: false`) and re-run the playbook so its uninstall removes
  34. the old registration, then enable this bridge.
  35. when: "matrix_bridge_beeper_linkedin_enabled | default(false) | bool"