add kubectx/kubens with bash completions

main
Andrew Coleman 2021-04-16 15:46:06 -04:00
parent ce2737c5e3
commit 880dd3a003
1 changed files with 22 additions and 0 deletions

View File

@ -91,3 +91,25 @@
warn: False warn: False
creates: "{{ ansible_env.HOME }}/.local/bin/stern" creates: "{{ ansible_env.HOME }}/.local/bin/stern"
- name: install kubectx-HEAD
command: go get github.com/ahmetb/kubectx/cmd/kubectx
args:
creates: "{{ ansible_env.HOME }}/go/bin/kubectx"
- name: install bash kubectx completions
get_url:
url: https://raw.githubusercontent.com/ahmetb/kubectx/master/completion/kubectx.bash
dest: "{{ ansible_env.HOME }}/.bashrc.d/"
mode: "0640"
- name: install kubens-HEAD
command: go get github.com/ahmetb/kubectx/cmd/kubens
args:
creates: "{{ ansible_env.HOME }}/go/bin/kubens"
- name: install bash kubens completions
get_url:
url: https://raw.githubusercontent.com/ahmetb/kubectx/master/completion/kubens.bash
dest: "{{ ansible_env.HOME }}/.bashrc.d/"
mode: "0640"