homeserver/roles/mgrote_k8s_autocompletion/tasks/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02: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