k3s-io / k3s-ansible

Apache License 2.0
2.01k stars 802 forks source link

FIX full k3s path in k3s-ansible/roles/k3s/master/tasks/main.yml #222

Closed blackopsrepl closed 1 year ago

blackopsrepl commented 1 year ago

fixes the following (occurred on rocky 8 nodes):

TASK [k3s/master : Replace https://localhost:6443 by https://master-ip:6443] ** Thursday 10 August 2023 14:43:55 +0200 (0:00:00.742) 0:00:23.519 *** fatal: [viv-sin-rnd01.viviani]: FAILED! => {"changed": true, "cmd": "k3s kubectl config set-cluster default --server=https://viv-sin-rnd01.viviani:6443 --kubeconfig /home/adm-vdistefano/.kube/config", "msg": "[Errno 2] No such file or directory: b'k3s': b'k3s'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}