added bash completion to kubektl on kube nodes
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
state: latest
|
||||
with_items:
|
||||
- curl
|
||||
- bash-completion
|
||||
|
||||
- name: Fetch k3s install script
|
||||
ansible.builtin.uri:
|
||||
@@ -21,3 +22,8 @@
|
||||
ansible.builtin.shell:
|
||||
cmd: sh -s --
|
||||
stdin: "{{ k3s_installer.content }}"
|
||||
|
||||
- name: Setup bash completion
|
||||
ansible.builtin.shell:
|
||||
cmd: "kubectl completion bash >/etc/bash_completion.d/kubectl"
|
||||
creates: /etc/bash_completion.d/kubectl
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
register: k3s_service
|
||||
|
||||
- include_tasks: install.yml
|
||||
when: not k3s_service.stat.exists
|
||||
# when: not k3s_service.stat.exists
|
||||
|
||||
- name: Start service k3s, if not started
|
||||
ansible.builtin.service:
|
||||
|
||||
Reference in New Issue
Block a user