k3s-io / k3s-ansible

Apache License 2.0
1.89k stars 780 forks source link

[Epic] k3s_server and k3s_agent tasks are not idempotent #264

Open jon-stumpf opened 7 months ago

jon-stumpf commented 7 months ago

The below tasks are repeated even when they are not needed. Fixes are forthcoming.

k3s_server

dereknola commented 7 months ago

I assume most of this was me blindly putting in changed_when: true for these tasks :flushed:

dereknola commented 7 months ago

GH being dumb and autoclosing this issue.

jon-stumpf commented 6 months ago

FYI. I have been busy on other things and will be getting back to this after Christmas.

alvsanand commented 6 months ago

In step "Change server to API endpoint instead of localhost", kubeconfig must be set to "/etc/rancher/k3s/k3s.yaml". "~{{ ansible_user }}/.kube/config" is not used in the servers.

dereknola commented 2 weeks ago

Several more were addressed in https://github.com/k3s-io/k3s-ansible/pull/288