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.
 
 

67 rivejä
3.0 KiB

  1. ---
  2. - name: (Deprecation) Warn about ma1sd variables that are not used anymore
  3. fail:
  4. msg: >
  5. The `{{ item }}` variable defined in your configuration is not used by this playbook anymore!
  6. You'll need to adapt to the new way of extending ma1sd configuration.
  7. See the CHANGELOG and the `matrix_ma1sd_configuration_extension_yaml` variable for more information and examples.
  8. when: "item in vars"
  9. with_items:
  10. - 'matrix_ma1sd_ldap_enabled'
  11. - 'matrix_ma1sd_ldap_connection_host'
  12. - 'matrix_ma1sd_ldap_connection_tls'
  13. - 'matrix_ma1sd_ldap_connection_port'
  14. - 'matrix_ma1sd_ldap_connection_baseDn'
  15. - 'matrix_ma1sd_ldap_connection_baseDns'
  16. - 'matrix_ma1sd_ldap_connection_bindDn'
  17. - 'matrix_ma1sd_ldap_connection_bindPassword'
  18. - 'matrix_ma1sd_ldap_filter'
  19. - 'matrix_ma1sd_ldap_attribute_uid_type'
  20. - 'matrix_ma1sd_ldap_attribute_uid_value'
  21. - 'matrix_ma1sd_ldap_connection_bindPassword'
  22. - 'matrix_ma1sd_ldap_attribute_name'
  23. - 'matrix_ma1sd_ldap_attribute_threepid_email'
  24. - 'matrix_ma1sd_ldap_attribute_threepid_msisdn'
  25. - 'matrix_ma1sd_ldap_identity_filter'
  26. - 'matrix_ma1sd_ldap_identity_medium'
  27. - 'matrix_ma1sd_ldap_auth_filter'
  28. - 'matrix_ma1sd_ldap_directory_filter'
  29. - 'matrix_ma1sd_template_config'
  30. - name: Ensure ma1sd configuration does not contain any dot-notation keys
  31. fail:
  32. msg: >
  33. Since version 1.3.0, ma1sd will not accept property-style configuration keys.
  34. You have defined a key (`{{ item.key }}`) which contains a dot.
  35. Instead, use nesting. See: https://github.com/ma1uta/ma1sd/wiki/Upgrade-Notes#v130
  36. when: "'.' in item.key"
  37. with_dict: "{{ matrix_ma1sd_configuration }}"
  38. - name: Fail if required ma1sd settings not defined
  39. fail:
  40. msg: >
  41. You need to define a required configuration setting (`{{ item }}`) for using ma1sd.
  42. when: "vars[item] == ''"
  43. with_items:
  44. - "matrix_ma1sd_threepid_medium_email_connectors_smtp_host"
  45. - name: (Deprecation) Catch and report renamed ma1sd variables
  46. fail:
  47. msg: >-
  48. Your configuration contains a variable, which now has a different name.
  49. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  50. when: "vars | dict2items | selectattr('key', 'match', item.old) | list | items2dict"
  51. with_items:
  52. - {'old': 'matrix_ma1sd_container_expose_port', 'new': '<superseded by matrix_ma1sd_container_http_host_bind_port>'}
  53. - name: (Deprecation) Catch and report mxisd variables
  54. fail:
  55. msg: >-
  56. mxisd is deprecated and has been replaced with ma1sd (https://github.com/ma1uta/ma1sd), a compatible fork.
  57. The playbook will migrate your existing mxisd configuration and data automatically, but you need to adjust variable names.
  58. Please change your configuration (vars.yml) to rename all mxisd variables (`{{ item.old }}` -> `{{ item.new }}`).
  59. when: "vars | dict2items | selectattr('key', 'match', item.old) | list | items2dict"
  60. with_items:
  61. - {'old': 'matrix_mxisd_.*', 'new': 'matrix_ma1sd_.*'}