added bash completion to kubektl on kube nodes
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
state: latest
|
||||
with_items:
|
||||
- curl
|
||||
- bash-completion
|
||||
|
||||
- name: Fetch k3s install script
|
||||
ansible.builtin.uri:
|
||||
@@ -21,3 +22,8 @@
|
||||
ansible.builtin.shell:
|
||||
cmd: sh -s --
|
||||
stdin: "{{ k3s_installer.content }}"
|
||||
|
||||
- name: Setup bash completion
|
||||
ansible.builtin.shell:
|
||||
cmd: "kubectl completion bash >/etc/bash_completion.d/kubectl"
|
||||
creates: /etc/bash_completion.d/kubectl
|
||||
|
||||
Reference in New Issue
Block a user