Merge pull request #126 from mrobinsn/main

Case insensitive control node lookup
This commit is contained in:
Xan Manning 2021-05-30 21:00:45 +01:00 committed by GitHub
commit 10d11c63ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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