homeserver/roles/mgrote.k8s_autocompletion/tasks/main.yml

14 lines
366 B
YAML
Raw Normal View History

---
- 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