Infra/ansible/roles/kubernetes/tasks/controlplane.yml

11 lines
279 B
YAML
Raw Permalink Normal View History

2022-10-18 22:18:54 +02:00
- name: Add kubectl alias to bash
ansible.builtin.lineinfile:
mode: "0644"
path: /home/{{ users.0.username }}/.bashrc
line: "{{ item }}"
create: yes
with_items:
- source <(kubectl completion bash)
- alias k=kubectl
- complete -F __start_kubectl k