Unverified Commit c3832792 authored by Derek Nola's avatar Derek Nola Committed by GitHub
Browse files

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



Signed-off-by: default avatarDerek Nola <derek.nola@suse.com>
parent 8f71b09a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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\)'