From decadb798fa8dcf6eac08d302c0e65fe56e072e2 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Mon, 23 Dec 2024 16:11:15 +0500 Subject: [PATCH] Update etcd.yml --- automation/molecule/tests/etcd/etcd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/molecule/tests/etcd/etcd.yml b/automation/molecule/tests/etcd/etcd.yml index ac64b101c..c37599fd6 100644 --- a/automation/molecule/tests/etcd/etcd.yml +++ b/automation/molecule/tests/etcd/etcd.yml @@ -5,9 +5,9 @@ method: GET return_content: true validate_certs: "{{ tls_cert_generate | bool }}" - ca_path: "{{ tls_etcd_ca_cert_path | default(omit) }}" - client_cert: "{{ tls_etcd_cert_path | default(omit) }}" - client_key: "{{ tls_etcd_privatekey_path | default(omit) }}" + ca_path: "{{ tls_etcd_ca_cert_path if tls_cert_generate | bool else omit }}" + client_cert: "{{ tls_etcd_cert_path if tls_cert_generate | bool else omit }}" + client_key: "{{ tls_etcd_privatekey_path if tls_cert_generate | bool else omit }}" register: etcd_health_status failed_when: "(etcd_health_status.content | from_json).health != 'true'" when: dcs_type == "etcd"