feature:新增kubectl命令自动补全功能

This commit is contained in:
fumingwei
2022-09-01 10:53:01 +08:00
parent 0fb5253b1c
commit d88cf9942e

View File

@@ -22,16 +22,5 @@
name: k3s
enabled: yes
- name: "copy k3s.sh to destination"
copy:
src: "{{ role_path }}/files/k3s.sh"
dest: /etc/profile.d/
mode: 0755
- name: "add sudo secure_path"
lineinfile:
path: /etc/sudoers
backrefs: yes
regexp: "^(.*Defaults secure_path =.*)$"
line: '\1:/usr/local/bin'
- name: "kubectl bash auto-completion"
shell: kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null