c12s-kubespray/roles/download/tasks/kubernetes.yml

18 lines
491 B
YAML
Raw Normal View History

2015-10-03 20:19:50 +00:00
---
- name: Create kubernetes binary directory
2015-10-03 20:19:50 +00:00
local_action: file
path="{{ local_release_dir }}/kubernetes/bin"
2015-10-03 20:19:50 +00:00
state=directory
recurse=yes
2015-10-03 20:19:50 +00:00
- name: Download kubelet and kubectl
local_action: get_url
url="{{ kube_download_url }}/{{ item.name }}"
dest="{{ local_release_dir }}/kubernetes/bin"
sha256sum="{{ item.checksum }}"
with_items:
- name: kubelet
checksum: "{{ kubelet_checksum }}"
- name: kubectl
checksum: "{{ kubectl_checksum }}"