Only apply K3s autocomplete when ansible_user is defined (#398)

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola
2025-03-20 10:49:03 -07:00
committed by GitHub
parent 8f71b09a4c
commit c38327927b

View File

@@ -35,6 +35,7 @@
changed_when: true
- name: Add K3s autocomplete to user bashrc
when: ansible_user is defined
ansible.builtin.lineinfile:
path: "~{{ ansible_user }}/.bashrc"
regexp: '\.\s+<\(k3s completion bash\)'