Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

63 satır
3.8 KiB

  1. ---
  2. - name: Fail if invalid homeserver implementation
  3. ansible.builtin.fail:
  4. msg: "You need to set a valid homeserver implementation in `matrix_homeserver_implementation`"
  5. when: "matrix_homeserver_implementation not in ['synapse', 'dendrite', 'conduit']"
  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 change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  11. when: "item.old in vars"
  12. with_items:
  13. - {'old': 'host_specific_hostname_identity', 'new': 'matrix_domain'}
  14. - {'old': 'hostname_identity', 'new': 'matrix_domain'}
  15. - {'old': 'hostname_matrix', 'new': 'matrix_server_fqn_matrix'}
  16. - {'old': 'hostname_riot', 'new': 'matrix_server_fqn_element'}
  17. - {'old': 'matrix_server_fqn_riot', 'new': 'matrix_server_fqn_element'}
  18. # We have a dedicated check for this variable, because we'd like to have a custom (friendlier) message.
  19. - name: Fail if matrix_homeserver_generic_secret_key is undefined
  20. ansible.builtin.fail:
  21. msg: |
  22. The `matrix_homeserver_generic_secret_key` variable must be defined and have a non-null and non-empty value.
  23. If you're observing this error on a new installation, you should ensure that the `matrix_homeserver_generic_secret_key` is defined.
  24. If you're observing this error on an existing homeserver installation, you can fix it easily and in a backward-compatible way by adding
  25. `{% raw %}matrix_homeserver_generic_secret_key: "{{ matrix_synapse_macaroon_secret_key }}"{% endraw %}`
  26. to your `vars.yml` file. Using another secret value for the new variable is also possible and shouldn't cause any trouble.
  27. when: "matrix_homeserver_generic_secret_key is none or matrix_homeserver_generic_secret_key == ''"
  28. - name: Fail if required variables are undefined
  29. ansible.builtin.fail:
  30. msg: "The `{{ item.var }}` variable must be defined and have a non-null and non-empty value"
  31. with_items:
  32. - {'var': matrix_domain, 'value': "{{ matrix_domain | default('') }}"}
  33. - {'var': matrix_server_fqn_matrix, 'value': "{{ matrix_server_fqn_matrix | default('') }}"}
  34. - {'var': matrix_server_fqn_element, 'value': "{{ matrix_server_fqn_element | default('') }}"}
  35. - {'var': matrix_homeserver_container_url, 'value': "{{ matrix_homeserver_container_url | default('') }}"}
  36. - {'var': matrix_homeserver_container_federation_url, 'value': "{{ matrix_homeserver_container_federation_url | default('') }}"}
  37. when: "item.value is none or item.value == ''"
  38. - name: Fail if uppercase domain used
  39. ansible.builtin.fail:
  40. msg: "Detected that you're using an uppercase domain name - `{{ item }}`. This will cause trouble. Please use all-lowercase!"
  41. with_items:
  42. - "{{ matrix_domain }}"
  43. - "{{ matrix_server_fqn_matrix }}"
  44. - "{{ matrix_server_fqn_element }}"
  45. when: "item != item | lower"
  46. - name: Fail if encountering usage of removed role (mx-puppet-skype)
  47. ansible.builtin.fail:
  48. msg: >-
  49. Your configuration seems to include a reference to `matrix_mx_puppet_skype_enabled`. Are you trying to install the mx-puppet-skype bridge?
  50. The playbook no longer includes a role for installing mx-puppet-skype, because the mx-puppet-bridge is unmaintained and has been reported as broken for a long time.
  51. To get rid of this error, remove all `matrix_mx_puppet_*` references from your configuration.
  52. To clean up your server from mx-puppet-skype's presence, see this changelog entry: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#mx-puppet-skype-removal.
  53. If you still need bridging to Skype, consider switching to the go-skype bridge instead. See `docs/configuring-playbook-bridge-go-skype-bridge.md`.
  54. when: "'matrix_mx_puppet_skype_enabled' in vars"