---
- name: Download kubernetes release version file
  delegate_to: localhost
  get_url:
    url: https://storage.googleapis.com/kubernetes-release/release/stable.txt
    dest: /tmp/kubernetes_stable_version.txt

- name: Install kubectl
  get_url:
    url: "https://storage.googleapis.com/kubernetes-release/release/{{ lookup('file', '/tmp/kubernetes_stable_version.txt') }}/bin/linux/amd64/kubectl"
    dest: /usr/local/bin/kubectl
    mode: 0755
  become: true

- name: Install BASH completion for kubectl
  lineinfile:
    path: "{{ bashrc_path }}"
    line: 'source <(kubectl completion bash)'

- name: Install minikube
  get_url:
    url: "https://storage.googleapis.com/minikube/releases/v0.21.0/minikube-linux-amd64"
    dest: /usr/local/bin/minikube
    mode: 0755
  become: true

---
- name: Download kubernetes release version file
  delegate_to: localhost
  get_url:
    url: https://storage.googleapis.com/kubernetes-release/release/stable.txt
    dest: /tmp/kubernetes_stable_version.txt

- name: Install kubectl
  get_url:
    url: "https://storage.googleapis.com/kubernetes-release/release/{{ lookup('file', '/tmp/kubernetes_stable_version.txt') }}/bin/linux/amd64/kubectl"
    dest: /usr/local/bin/kubectl
    mode: 0755
  become: true

- name: Install BASH completion for kubectl
  lineinfile:
    path: "{{ bashrc_path }}"
    line: 'source <(kubectl completion bash)'

- name: Install minikube
  get_url:
    url: "https://storage.googleapis.com/minikube/releases/v0.21.0/minikube-linux-amd64"
    dest: /usr/local/bin/minikube
    mode: 0755
  become: true

- name: Install helm
  unarchive:
    src: "https://kubernetes-helm.storage.googleapis.com/helm-v2.5.0-linux-amd64.tar.gz"
    dest: /usr/local/bin/
    extra_opts:
      - '--strip-components=1'
    exclude:
      - LICENSE
      - README.md
    remote_src: true
  become: true

Install helm in dev role
Install helm in dev role
