diff --git a/roles/k3s_server/tasks/main.yml b/roles/k3s_server/tasks/main.yml index 5fe7596..f66ee53 100644 --- a/roles/k3s_server/tasks/main.yml +++ b/roles/k3s_server/tasks/main.yml @@ -67,8 +67,8 @@ when: - api_endpoint is defined - api_endpoint != ansible_hostname - - not _api_endpoint_in_config | bool - - not _api_endpoint_in_args | bool + - not (_api_endpoint_in_config | trim | bool) + - not (_api_endpoint_in_args | trim | bool) ansible.builtin.set_fact: opt_tls_san: "--tls-san={{ api_endpoint }}"