With a snap package. Because apparently that's how that's done. Change-Id: I0462cc062c2706509215158bca99e7a2ad58675achanges/93/635593/7
parent
2766ec2595
commit
94d404a535
@ -0,0 +1,5 @@
|
||||
Install kubectl
|
||||
|
||||
**Role Variables**
|
||||
|
||||
* None
|
@ -0,0 +1,16 @@
|
||||
- name: Install snapd
|
||||
package:
|
||||
name: snapd
|
||||
state: present
|
||||
|
||||
- name: Install kubectl
|
||||
command: snap install kubectl --classic
|
||||
|
||||
# /snap/bin is often in the path, but not in a non-login shell, which
|
||||
# makes it difficult to use via ansible. Add an extra symlink so we
|
||||
# can always find it.
|
||||
- name: Symlink snapd into /usr/local/bin
|
||||
file:
|
||||
src: /snap/bin/kubectl
|
||||
dest: /usr/local/bin/kubectl
|
||||
state: link
|
Loading…
Reference in new issue