k3s-io / k3s-ansible

Apache License 2.0
1.89k stars 780 forks source link

Fixed #260: k3s autocompletion is added to .bashrc only when necessary; #262

Closed jon-stumpf closed 7 months ago

jon-stumpf commented 7 months ago

k3s auto-completion is added _~/{{ ansibleuser }}/.bashrc only when necessary. I replaced the use of ansible.builtin.command with ansible.builtin.lineinfile. This fixes https://github.com/k3s-io/k3s-ansible/issues/260.