2019-01-17 11:32:46 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: (Deprecation) Catch and report renamed settings
|
|
|
|
fail:
|
2019-05-24 22:41:04 +00:00
|
|
|
msg: >-
|
2019-01-17 11:32:46 +00:00
|
|
|
Your configuration contains a variable, which now has a different name.
|
|
|
|
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
|
|
|
|
when: "item.old in vars"
|
|
|
|
with_items:
|
|
|
|
- {'old': 'matrix_nginx_proxy_matrix_client_api_addr_with_proxy_container', 'new': 'matrix_nginx_proxy_proxy_matrix_client_api_addr_with_container'}
|
|
|
|
- {'old': 'matrix_nginx_proxy_matrix_client_api_addr_sans_proxy_container', 'new': 'matrix_nginx_proxy_proxy_matrix_client_api_addr_sans_container'}
|
2020-07-17 08:31:20 +00:00
|
|
|
# People who configured this to disable Riot, would now wish to be disabling Element.
|
|
|
|
# We now also have `matrix_nginx_proxy_proxy_riot_compat_redirect_`, but that's something else and is disabled by default.
|
|
|
|
- {'old': 'matrix_nginx_proxy_proxy_riot_enabled', 'new': 'matrix_nginx_proxy_proxy_element_enabled'}
|
2021-01-14 15:47:13 +00:00
|
|
|
- {'old': 'matrix_ssl_lets_encrypt_renew_cron_time_definition', 'new': '<not configurable anymore>'}
|
|
|
|
- {'old': 'matrix_nginx_proxy_reload_cron_time_definition', 'new': '<not configurable anymore>'}
|
2019-01-17 11:32:46 +00:00
|
|
|
|
2019-08-02 08:59:10 +00:00
|
|
|
- name: Fail on unknown matrix_ssl_retrieval_method
|
|
|
|
fail:
|
|
|
|
msg: >-
|
|
|
|
`matrix_ssl_retrieval_method` needs to be set to a known value.
|
|
|
|
when: "matrix_ssl_retrieval_method not in ['lets-encrypt', 'self-signed', 'manually-managed', 'none']"
|
2020-12-16 09:35:37 +00:00
|
|
|
|
|
|
|
- name: Fail on unknown matrix_nginx_proxy_ssl_config
|
|
|
|
fail:
|
|
|
|
msg: >-
|
2021-01-08 10:20:29 +00:00
|
|
|
`matrix_nginx_proxy_ssl_preset` needs to be set to a known value.
|
|
|
|
when: "matrix_nginx_proxy_ssl_preset not in ['modern', 'intermediate', 'old']"
|
2021-01-14 15:00:46 +00:00
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: (Deprecation) Catch and report renamed settings
|
|
|
|
fail:
|
|
|
|
msg: >-
|
|
|
|
Your configuration contains a variable, which now has a different name.
|
|
|
|
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
|
|
|
|
with_items:
|
|
|
|
- {'old': 'host_specific_matrix_ssl_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
|
|
|
|
- {'old': 'host_specific_matrix_ssl_lets_encrypt_support_email', 'new': 'matrix_ssl_lets_encrypt_support_email'}
|
|
|
|
when: "item.old in vars"
|
|
|
|
|
|
|
|
- name: Fail if required variables are undefined
|
|
|
|
fail:
|
|
|
|
msg: "Detected an undefined required variable"
|
|
|
|
with_items:
|
|
|
|
- "matrix_ssl_lets_encrypt_support_email"
|
|
|
|
when: "vars[item] is none"
|
|
|
|
when: "matrix_ssl_retrieval_method == 'lets-encrypt'"
|