homeserver/roles/mgrote.k8s_autocompletion/tasks/main.yml
mg 135bd53414 k3s - Basics (#423)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #423
2022-11-04 20:58:37 +01:00

13 lines
366 B
YAML

---
- name: install bash-completion packages
become: yes
ansible.builtin.package:
name: bash-completion
state: present
- name: activate autocompletion for kubectl
become: yes
ansible.builtin.shell:
cmd: "kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl"
args:
creates: /etc/bash_completion.d/kubectl