2015-10-04 04:19:50 +08:00
|
|
|
---
|
|
|
|
- name: Write kube-proxy systemd init file
|
2015-11-20 18:18:37 +08:00
|
|
|
template: src=systemd-init/kube-proxy.service.j2 dest=/etc/systemd/system/kube-proxy.service backup=yes
|
2015-10-04 04:19:50 +08:00
|
|
|
notify: restart daemons
|
|
|
|
|
|
|
|
- name: Write kubelet systemd init file
|
2015-11-20 18:18:37 +08:00
|
|
|
template: src=systemd-init/kubelet.service.j2 dest=/etc/systemd/system/kubelet.service backup=yes
|
2015-10-04 04:19:50 +08:00
|
|
|
notify: restart daemons
|
|
|
|
|
|
|
|
- name: Install kubernetes binaries
|
2015-11-20 18:18:37 +08:00
|
|
|
copy:
|
2015-10-04 04:19:50 +08:00
|
|
|
src={{ local_release_dir }}/kubernetes/bin/{{ item }}
|
|
|
|
dest={{ bin_dir }}
|
|
|
|
owner=kube
|
|
|
|
mode=u+x
|
|
|
|
with_items:
|
|
|
|
- kube-proxy
|
|
|
|
- kubelet
|
|
|
|
notify:
|
|
|
|
- restart daemons
|