Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

48 строки
2.4 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed settings
  3. 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. - name: Fail on unknown matrix_ssl_retrieval_method
  17. fail:
  18. msg: >-
  19. `matrix_ssl_retrieval_method` needs to be set to a known value.
  20. when: "matrix_ssl_retrieval_method not in ['lets-encrypt', 'self-signed', 'manually-managed', 'none']"
  21. - name: Fail on unknown matrix_nginx_proxy_ssl_config
  22. fail:
  23. msg: >-
  24. `matrix_nginx_proxy_ssl_preset` needs to be set to a known value.
  25. when: "matrix_nginx_proxy_ssl_preset not in ['modern', 'intermediate', 'old']"
  26. - block:
  27. - name: (Deprecation) Catch and report renamed settings
  28. fail:
  29. msg: >-
  30. Your configuration contains a variable, which now has a different name.
  31. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  32. with_items:
  33. - {'old': 'host_specific_matrix_ssl_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
  34. - {'old': 'host_specific_matrix_ssl_lets_encrypt_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
  35. when: "item.old in vars"
  36. - name: Fail if required variables are undefined
  37. fail:
  38. msg: "The `{{ item }}` variable must be defined and have a non-null value"
  39. with_items:
  40. - "matrix_ssl_lets_encrypt_support_email"
  41. when: "vars[item] == '' or vars[item] is none"
  42. when: "matrix_ssl_retrieval_method == 'lets-encrypt'"