2 - import_playbook: ../common-packer/provision/docker.yaml
11 kubectl_version: 1.16.3
12 golang_checksum: sha256:512103d7ad296467814a6e3f635631bd35574cab3369a97a323c9a585ccaa569
15 - name: "Install GoLang {{golang_version}}"
17 - name: "Fetch golang {{golang_version}} to /tmp/go{{golang_version}}.linux-amd64.tar.gz"
19 url: "https://storage.googleapis.com/golang/go{{golang_version}}.linux-amd64.tar.gz"
20 dest: "/tmp/go{{golang_version}}.linux-amd64.tar.gz"
21 checksum: "{{golang_checksum}}"
22 - name: "Install golang {{golang_version}} to /usr/local"
24 src: "/tmp/go{{golang_version}}.linux-amd64.tar.gz"
28 - name: Create symbolic link to go bin
30 src: "/usr/local/go/bin/go"
34 - name: "Install kubectl {{kubectl_version}}"
36 url: https://storage.googleapis.com/kubernetes-release/release/v{{kubectl_version}}/bin/linux/amd64/kubectl
37 dest: /usr/local/bin/kubectl
41 - name: "Install Helm {{helm_version}}"
43 - name: "Fetch tar.gz"
45 url: https://get.helm.sh/helm-v{{helm_version}}-linux-amd64.tar.gz
46 dest: /tmp/helm-v{{helm_version}}-linux-amd64.tar.gz
49 src: /tmp/helm-v{{helm_version}}-linux-amd64.tar.gz
53 - name: "Move helm to /usr/local/bin and set as executable"
54 command: "mv /tmp/linux-amd64/helm /usr/local/bin/helm"
58 - name: "Check kubectl."
59 command: "which kubectl"