Infra/ansible/roles/kubernetes/tasks/controlplane.yml
Simen Røstvik b8cba7a361
yeet
2022-12-13 00:58:34 +01:00

11 lines
279 B
YAML

- 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