Only apply K3s autocomplete when ansible_user is defined (#398)
Signed-off-by: Derek Nola <derek.nola@suse.com>pull/402/head
parent
8f71b09a4c
commit
c38327927b
|
@ -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\)'
|
||||
|
|
Loading…
Reference in New Issue