Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

78 Zeilen
5.2 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed settings
  3. ansible.builtin.fail:
  4. msg: >-
  5. Your configuration contains a variable, which now has a different name.
  6. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  7. when: "item.old in vars"
  8. with_items:
  9. - {'old': 'matrix_nginx_proxy_matrix_client_api_addr_with_proxy_container', 'new': 'matrix_nginx_proxy_proxy_matrix_client_api_addr_with_container'}
  10. - {'old': 'matrix_nginx_proxy_matrix_client_api_addr_sans_proxy_container', 'new': 'matrix_nginx_proxy_proxy_matrix_client_api_addr_sans_container'}
  11. # People who configured this to disable Riot, would now wish to be disabling Element.
  12. # We now also have `matrix_nginx_proxy_proxy_riot_compat_redirect_`, but that's something else and is disabled by default.
  13. - {'old': 'matrix_nginx_proxy_proxy_riot_enabled', 'new': 'matrix_nginx_proxy_proxy_element_enabled'}
  14. - {'old': 'matrix_ssl_lets_encrypt_renew_cron_time_definition', 'new': '<not configurable anymore>'}
  15. - {'old': 'matrix_nginx_proxy_reload_cron_time_definition', 'new': '<not configurable anymore>'}
  16. - {'old': 'matrix_nginx_proxy_container_labels_traefik_proxy_matrix_rule', 'new': '<split into matrix_nginx_proxy_container_labels_traefik_proxy_matrix_client_rule and matrix_nginx_proxy_container_labels_traefik_proxy_matrix_federation_rule>'}
  17. - {'old': 'matrix_nginx_proxy_container_labels_traefik_proxy_matrix_hostname', 'new': '<split into matrix_nginx_proxy_container_labels_traefik_proxy_matrix_client_hostname and matrix_nginx_proxy_container_labels_traefik_proxy_matrix_federation_hostname>'}
  18. - {'old': 'matrix_nginx_proxy_proxy_jitsi_additional_jvbs', 'new': '<auto-determined from the jitsi_jvb_servers group in inventory/hosts - see docs/configuring-playbook-jitsi.md>'}
  19. - name: Fail on unknown matrix_ssl_retrieval_method
  20. ansible.builtin.fail:
  21. msg: >-
  22. `matrix_ssl_retrieval_method` needs to be set to a known value.
  23. when: "matrix_ssl_retrieval_method not in ['lets-encrypt', 'self-signed', 'manually-managed', 'none']"
  24. - name: Fail on unknown matrix_nginx_proxy_ssl_config
  25. ansible.builtin.fail:
  26. msg: >-
  27. `matrix_nginx_proxy_ssl_preset` needs to be set to a known value.
  28. when: "matrix_nginx_proxy_ssl_preset not in ['modern', 'intermediate', 'old']"
  29. - name: Fail if Basic Auth enabled for metrics, but no credentials supplied
  30. ansible.builtin.fail:
  31. msg: |
  32. Enabling Basic Auth for metrics (`matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_enabled`) requires:
  33. - either a username/password (provided in `matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_username` and `matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_password`)
  34. - or raw htpasswd content (provided in `matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_raw_content`)
  35. when: "matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_enabled | bool and (matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_raw_content == '' and (matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_username == '' or matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_password == ''))"
  36. - when: "matrix_ssl_retrieval_method == 'lets-encrypt'"
  37. block:
  38. - name: (Deprecation) Catch and report renamed settings
  39. ansible.builtin.fail:
  40. msg: >-
  41. Your configuration contains a variable, which now has a different name.
  42. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  43. with_items:
  44. - {'old': 'host_specific_matrix_ssl_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
  45. - {'old': 'host_specific_matrix_ssl_lets_encrypt_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
  46. - {'old': 'matrix_nginx_proxy_proxy_synapse_workers_enabled_list', 'new': '<no longer used>'}
  47. when: "item.old in vars"
  48. - name: Fail if required variables are undefined
  49. ansible.builtin.fail:
  50. msg: "The `{{ item }}` variable must be defined and have a non-null value"
  51. with_items:
  52. - "matrix_ssl_lets_encrypt_support_email"
  53. - "matrix_nginx_proxy_proxy_synapse_federation_api_addr_sans_container"
  54. - "matrix_nginx_proxy_proxy_synapse_federation_api_addr_with_container"
  55. - "matrix_nginx_proxy_proxy_synapse_client_api_addr_with_container"
  56. - "matrix_nginx_proxy_proxy_synapse_client_api_addr_sans_container"
  57. when: "vars[item] == '' or vars[item] is none"
  58. - name: (Deprecation) Catch and report old metrics usage
  59. ansible.builtin.fail:
  60. msg: >-
  61. Your configuration contains a variable (`{{ item }}`), which refers to the old metrics collection system for Synapse,
  62. which exposed metrics on `https://matrix.DOMAIN/_synapse/metrics` and `https://matrix.DOMAIN/_synapse-worker-TYPE-ID/metrics`.
  63. We now recommend exposing Synapse metrics in another way, from another URL.
  64. Refer to the changelog for more details: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#2022-06-22
  65. with_items:
  66. - matrix_nginx_proxy_proxy_synapse_metrics
  67. - matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled
  68. - matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_key
  69. when: "item in vars"