From 2c7f87749a316aab5520b62278985305affa9a0f Mon Sep 17 00:00:00 2001 From: Hiromasa Ihara Date: Fri, 16 Aug 2024 10:51:51 +0900 Subject: [PATCH] fix: add default value to zabbix_proxy_tlsaccept and zabbix_proxy_tlsconnect in create api call argument (#1372) --- roles/zabbix_proxy/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/zabbix_proxy/tasks/main.yml b/roles/zabbix_proxy/tasks/main.yml index c4b6aa64d..1d429c4cd 100644 --- a/roles/zabbix_proxy/tasks/main.yml +++ b/roles/zabbix_proxy/tasks/main.yml @@ -143,8 +143,8 @@ tls_psk: "{{ zabbix_proxy_tlspsk_secret | default(omit) }}" tls_psk_identity: "{{ zabbix_proxy_tlspskidentity | default(omit) }}" tls_subject: "{{ zabbix_proxy_tls_subject | default(omit) }}" - tls_connect: "{{ zabbix_proxy_tls_config[zabbix_proxy_tlsaccept if zabbix_proxy_tlsaccept else 'no_encryption'] }}" - tls_accept: "{{ zabbix_proxy_tls_config[zabbix_proxy_tlsconnect if zabbix_proxy_tlsconnect else 'no_encryption'] }}" + tls_connect: "{{ zabbix_proxy_tls_config[zabbix_proxy_tlsaccept | default('no_encryption')] }}" + tls_accept: "{{ zabbix_proxy_tls_config[zabbix_proxy_tlsconnect | default('no_encryption')] }}" when: - zabbix_api_create_proxy | bool delegate_to: "{{ zabbix_api_server_host }}"