2022-09-04 08:46:56 +02:00
|
|
|
---
|
|
|
|
|
2024-01-09 10:26:46 +01:00
|
|
|
- name: Fail if required matrix-ldap-registration-proxy settings not defined
|
2022-09-04 08:46:56 +02:00
|
|
|
ansible.builtin.fail:
|
|
|
|
msg: >-
|
|
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
|
|
when: "vars[item] == ''"
|
|
|
|
with_items:
|
2024-01-09 10:26:46 +01:00
|
|
|
- "matrix_ldap_registration_proxy_hostname"
|
2022-09-04 08:46:56 +02:00
|
|
|
- "matrix_ldap_registration_proxy_ldap_uri"
|
|
|
|
- "matrix_ldap_registration_proxy_ldap_base_dn"
|
|
|
|
- "matrix_ldap_registration_proxy_ldap_user"
|
|
|
|
- "matrix_ldap_registration_proxy_ldap_password"
|
2024-01-09 10:26:46 +01:00
|
|
|
- "matrix_ldap_registration_proxy_container_network"
|
|
|
|
|
|
|
|
- name: (Deprecation) Catch and report renamed matrix-ldap-registration-proxy settings
|
|
|
|
ansible.builtin.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 }}`).
|
|
|
|
when: "item.old in vars"
|
|
|
|
with_items:
|
|
|
|
- {'old': 'matrix_ldap_registration_proxy_registration_addr_with_container', 'new': '<removed>'}
|
|
|
|
- {'old': 'matrix_ldap_registration_proxy_registration_addr_sans_container', 'new': '<removed>'}
|
|
|
|
- {'old': 'matrix_ldap_registration_proxy_container_port', 'new': 'matrix_ldap_registration_listen_port'}
|
|
|
|
- {'old': 'matrix_ldap_registration_proxy_registration_endpoint', 'new': 'matrix_ldap_registration_proxy_container_labels_registration_endpoint_path_prefix'}
|