k3s-io / k3s-ansible

Apache License 2.0
1.89k stars 780 forks source link

"Add K3s autocomplete to user bashrc" does not test first if it is needed #260

Closed jon-stumpf closed 7 months ago

jon-stumpf commented 7 months ago

Subsequent running of the playbook/site.yml will continue add k3s autocompletion to the shell profile. It should test first if it is already there.

https://github.com/k3s-io/k3s-ansible/blob/1e8bfb0d3967defe66929616f50a2f40d2470a87/roles/k3s_server/tasks/main.yml#L78

And, the last line of the 3-line addition does not have an EOL ('\n'). But, this is an issue for k3s.