homeserver/friedhof/mgrote_k8s_autocompletion/tasks/main.yml
Michael Grote e8d7c61ff2 Abbau k3s4 (#607)
Reviewed-on: #607
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-11-21 21:20:53 +01:00

15 lines
391 B
YAML

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