From 3006716f660645cb42db2f386f02d96c766a1b0e Mon Sep 17 00:00:00 2001 From: Michael Robinson Date: Sat, 29 May 2021 14:26:50 -0600 Subject: [PATCH] Case insensitive control node lookup --- tasks/build/preconfigure-k3s.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/build/preconfigure-k3s.yml b/tasks/build/preconfigure-k3s.yml index 5456724..ffd070e 100644 --- a/tasks/build/preconfigure-k3s.yml +++ b/tasks/build/preconfigure-k3s.yml @@ -86,7 +86,7 @@ block: - name: Lookup control node from file ansible.builtin.command: - cmd: "grep '{{ 'P_True' if (k3s_controller_list | length > 1) else 'C_True' }}' /tmp/inventory.txt" + cmd: "grep -i '{{ 'P_True' if (k3s_controller_list | length > 1) else 'C_True' }}' /tmp/inventory.txt" changed_when: false check_mode: false register: k3s_control_delegate_raw