homeserver/friedhof/mgrote_k8s_autocompletion/tasks/main.yml

15 lines
391 B
YAML
Raw Normal View History

---
- name: install bash-completion packages
become: true
ansible.builtin.package:
name: bash-completion
state: present
- name: activate autocompletion for kubectl
become: true
ansible.builtin.shell:
cmd: "set -o pipefail && kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl"
executable: /bin/bash
args:
creates: /etc/bash_completion.d/kubectl