Fix the 'Save the existing K3s token if needed' task (#503)

Signed-off-by: laszlojau <49835454+laszlojau@users.noreply.github.com>
This commit is contained in:
laszlojau
2026-02-06 05:53:26 +10:30
committed by GitHub
parent bc3f66be7b
commit 77b49f76ce

View File

@@ -40,7 +40,7 @@
when:
- token is not defined
- inventory_hostname == groups[server_group][0] or ansible_host == groups[server_group][0]
ansible.builtin.command: cat /var/lib/rancher/k3s/server/node-token | cut -d':' -f4
ansible.builtin.command: cut -d':' -f4 /var/lib/rancher/k3s/server/node-token
register: k3s_upgrade_old_token
changed_when: false