| @@ -13,7 +13,7 @@ | |||||
| with_items: | with_items: | ||||
| - "matrix_appservice_draupnir_for_all_config_adminRoom" | - "matrix_appservice_draupnir_for_all_config_adminRoom" | ||||
| - "matrix_bot_draupnir_container_network" | - "matrix_bot_draupnir_container_network" | ||||
| when: "vars[item] == '' or vars[item] is none" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| - name: (Deprecation) Catch and report renamed matrix-appservice-draupnir-for-all settings | - name: (Deprecation) Catch and report renamed matrix-appservice-draupnir-for-all settings | ||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| @@ -19,7 +19,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item.name }}`). | You need to define a required configuration setting (`{{ item.name }}`). | ||||
| when: "item.when | bool and vars[item.name] | string | length == 0" | |||||
| when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0" | |||||
| with_items: | with_items: | ||||
| - {'name': 'matrix_authentication_service_syn2mas_synapse_homeserver_config_path', when: true} | - {'name': 'matrix_authentication_service_syn2mas_synapse_homeserver_config_path', when: true} | ||||
| @@ -10,7 +10,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - "matrix_bot_matrix_registration_bot_bot_password" | - "matrix_bot_matrix_registration_bot_bot_password" | ||||
| - "matrix_bot_matrix_registration_bot_api_base_url" | - "matrix_bot_matrix_registration_bot_api_base_url" | ||||
| @@ -18,14 +18,14 @@ | |||||
| - {'name': 'matrix_bot_mjolnir_raw_homeserver_url', when: true} | - {'name': 'matrix_bot_mjolnir_raw_homeserver_url', when: true} | ||||
| - {'name': 'matrix_bot_mjolnir_pantalaimon_username', when: "{{ matrix_bot_mjolnir_pantalaimon_use }}"} | - {'name': 'matrix_bot_mjolnir_pantalaimon_username', when: "{{ matrix_bot_mjolnir_pantalaimon_use }}"} | ||||
| - {'name': 'matrix_bot_mjolnir_pantalaimon_password', when: "{{ matrix_bot_mjolnir_pantalaimon_use }}"} | - {'name': 'matrix_bot_mjolnir_pantalaimon_password', when: "{{ matrix_bot_mjolnir_pantalaimon_use }}"} | ||||
| when: "item.when | bool and (vars[item.name] == '' or vars[item.name] is none)" | |||||
| when: "item.when | bool and (lookup('vars', item.name, default='') == '')" | |||||
| - name: Fail if inappropriate variables are defined | - name: Fail if inappropriate variables are defined | ||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: "The `{{ item.name }}` variable must be undefined or have a null value." | msg: "The `{{ item.name }}` variable must be undefined or have a null value." | ||||
| with_items: | with_items: | ||||
| - {'name': 'matrix_bot_mjolnir_access_token', when: "{{ matrix_bot_mjolnir_pantalaimon_use }}"} | - {'name': 'matrix_bot_mjolnir_access_token', when: "{{ matrix_bot_mjolnir_pantalaimon_use }}"} | ||||
| when: "item.when | bool and not (vars[item.name] == '' or vars[item.name] is none)" | |||||
| when: "item.when | bool and not (lookup('vars', item.name, default='') == '')" | |||||
| - name: (Deprecation) Catch and report renamed Mjolnir settings | - name: (Deprecation) Catch and report renamed Mjolnir settings | ||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| @@ -9,7 +9,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - "matrix_mautrix_androidsms_appservice_token" | - "matrix_mautrix_androidsms_appservice_token" | ||||
| - "matrix_mautrix_androidsms_homeserver_token" | - "matrix_mautrix_androidsms_homeserver_token" | ||||
| @@ -11,7 +11,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - "matrix_sms_bridge_appservice_token" | - "matrix_sms_bridge_appservice_token" | ||||
| - "matrix_sms_bridge_homeserver_hostname" | - "matrix_sms_bridge_homeserver_hostname" | ||||
| @@ -8,7 +8,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_cactus_comments_client_hostname | - matrix_cactus_comments_client_hostname | ||||
| - matrix_cactus_comments_client_path_prefix | - matrix_cactus_comments_client_path_prefix | ||||
| @@ -24,7 +24,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - "matrix_cactus_comments_as_token" | - "matrix_cactus_comments_as_token" | ||||
| - "matrix_cactus_comments_hs_token" | - "matrix_cactus_comments_hs_token" | ||||
| @@ -9,7 +9,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: > | msg: > | ||||
| You need to define a required configuration setting (`{{ item }}`) for using FluffyChat Web. | You need to define a required configuration setting (`{{ item }}`) for using FluffyChat Web. | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_client_fluffychat_container_network | - matrix_client_fluffychat_container_network | ||||
| @@ -27,7 +27,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_client_fluffychat_container_labels_traefik_hostname | - matrix_client_fluffychat_container_labels_traefik_hostname | ||||
| - matrix_client_fluffychat_container_labels_traefik_path_prefix | - matrix_client_fluffychat_container_labels_traefik_path_prefix | ||||
| @@ -30,7 +30,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_client_hydrogen_container_labels_traefik_hostname | - matrix_client_hydrogen_container_labels_traefik_hostname | ||||
| - matrix_client_hydrogen_container_labels_traefik_path_prefix | - matrix_client_hydrogen_container_labels_traefik_path_prefix | ||||
| @@ -20,7 +20,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: > | msg: > | ||||
| You need to define a required configuration setting (`{{ item }}`) for using SchildiChat Web. | You need to define a required configuration setting (`{{ item }}`) for using SchildiChat Web. | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_client_schildichat_default_hs_url | - matrix_client_schildichat_default_hs_url | ||||
| - matrix_client_schildichat_container_network | - matrix_client_schildichat_container_network | ||||
| @@ -39,7 +39,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_client_schildichat_container_labels_traefik_hostname | - matrix_client_schildichat_container_labels_traefik_hostname | ||||
| - matrix_client_schildichat_container_labels_traefik_path_prefix | - matrix_client_schildichat_container_labels_traefik_path_prefix | ||||
| @@ -11,7 +11,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - "matrix_ldap_registration_proxy_hostname" | - "matrix_ldap_registration_proxy_hostname" | ||||
| - "matrix_ldap_registration_proxy_ldap_uri" | - "matrix_ldap_registration_proxy_ldap_uri" | ||||
| @@ -9,7 +9,7 @@ | |||||
| msg: "The `{{ item }}` variable must be defined and have a non-null value." | msg: "The `{{ item }}` variable must be defined and have a non-null value." | ||||
| with_items: | with_items: | ||||
| - "matrix_pantalaimon_homeserver_url" | - "matrix_pantalaimon_homeserver_url" | ||||
| when: "vars[item] == '' or vars[item] is none" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| - name: (Deprecation) Catch and report renamed Pantalaimon variables | - name: (Deprecation) Catch and report renamed Pantalaimon variables | ||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| @@ -9,7 +9,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: > | msg: > | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_rageshake_hostname | - matrix_rageshake_hostname | ||||
| - matrix_rageshake_path_prefix | - matrix_rageshake_path_prefix | ||||
| @@ -29,7 +29,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_rageshake_container_labels_traefik_hostname | - matrix_rageshake_container_labels_traefik_hostname | ||||
| - matrix_rageshake_container_labels_traefik_path_prefix | - matrix_rageshake_container_labels_traefik_path_prefix | ||||
| @@ -9,7 +9,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: > | msg: > | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_sygnal_hostname | - matrix_sygnal_hostname | ||||
| - matrix_sygnal_path_prefix | - matrix_sygnal_path_prefix | ||||
| @@ -21,7 +21,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_sygnal_container_labels_traefik_hostname | - matrix_sygnal_container_labels_traefik_hostname | ||||
| - matrix_sygnal_container_labels_traefik_path_prefix | - matrix_sygnal_container_labels_traefik_path_prefix | ||||
| @@ -138,7 +138,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`) when enabling `matrix_synapse_container_image_customizations_templates_enabled`. | You need to define a required configuration setting (`{{ item }}`) when enabling `matrix_synapse_container_image_customizations_templates_enabled`. | ||||
| when: "vars[item] == ''" | |||||
| when: "lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_synapse_container_image_customizations_templates_git_repository_url | - matrix_synapse_container_image_customizations_templates_git_repository_url | ||||
| - matrix_synapse_container_image_customizations_templates_git_repository_branch | - matrix_synapse_container_image_customizations_templates_git_repository_branch | ||||
| @@ -147,7 +147,7 @@ | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: >- | msg: >- | ||||
| You need to define a required configuration setting (`{{ item }}`) when enabling `matrix_synapse_container_image_customizations_templates_git_repository_keyscan`. | You need to define a required configuration setting (`{{ item }}`) when enabling `matrix_synapse_container_image_customizations_templates_git_repository_keyscan`. | ||||
| when: "matrix_synapse_container_image_customizations_templates_git_repository_keyscan_enabled | bool and vars[item] == ''" | |||||
| when: "matrix_synapse_container_image_customizations_templates_git_repository_keyscan_enabled | bool and lookup('vars', item, default='') == ''" | |||||
| with_items: | with_items: | ||||
| - matrix_synapse_container_image_customizations_templates_git_repository_keyscan_hostname | - matrix_synapse_container_image_customizations_templates_git_repository_keyscan_hostname | ||||