Michael Grote
e8d7c61ff2
Reviewed-on: #607 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
14 lines
391 B
YAML
14 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
|