From 43c2fde96e49c7259f2bfb67e3a1c022d0d78b26 Mon Sep 17 00:00:00 2001 From: too-gee <116376+too-gee@users.noreply.github.com> Date: Sat, 27 Sep 2025 10:59:37 -0500 Subject: [PATCH] Trim strings to prevent coercion warning Signed-off-by: too-gee <116376+too-gee@users.noreply.github.com> --- roles/k3s_server/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}"