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.
 
 

51 lines
3.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. - when: "matrix_ssl_retrieval_method == 'lets-encrypt'"
  30. block:
  31. - name: (Deprecation) Catch and report renamed settings
  32. ansible.builtin.fail:
  33. msg: >-
  34. Your configuration contains a variable, which now has a different name.
  35. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  36. with_items:
  37. - {'old': 'host_specific_matrix_ssl_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
  38. - {'old': 'host_specific_matrix_ssl_lets_encrypt_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
  39. when: "item.old in vars"
  40. - name: Fail if required variables are undefined
  41. ansible.builtin.fail:
  42. msg: "The `{{ item }}` variable must be defined and have a non-null value"
  43. with_items:
  44. - "matrix_ssl_lets_encrypt_support_email"
  45. when: "vars[item] == '' or vars[item] is none"