mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-03-10 12:12:12 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user