2015-10-03 20:19:50 +00:00
|
|
|
---
|
2015-12-22 10:50:55 +00:00
|
|
|
- name: install | Write kubelet systemd init file
|
2015-12-11 10:32:13 +00:00
|
|
|
template: src=kubelet.service.j2 dest=/etc/systemd/system/kubelet.service backup=yes
|
2016-02-13 10:17:20 +00:00
|
|
|
when: ansible_service_mgr == "systemd"
|
2016-01-24 21:27:55 +00:00
|
|
|
notify: restart kubelet
|
2015-12-31 13:05:55 +00:00
|
|
|
|
2015-12-22 10:50:55 +00:00
|
|
|
- name: install | Write kubelet initd script
|
2016-01-25 16:34:51 +00:00
|
|
|
template: src=deb-kubelet.initd.j2 dest=/etc/init.d/kubelet owner=root mode=0755 backup=yes
|
2016-02-13 10:17:20 +00:00
|
|
|
when: ansible_service_mgr in ["sysvinit","upstart"] and ansible_os_family == "Debian"
|
2016-01-04 13:22:18 +00:00
|
|
|
notify: restart kubelet
|
2015-12-31 13:05:55 +00:00
|
|
|
|
2015-12-22 10:50:55 +00:00
|
|
|
- name: install | Write kubelet initd script
|
2016-01-25 16:34:51 +00:00
|
|
|
template: src=rh-kubelet.initd.j2 dest=/etc/init.d/kubelet owner=root mode=0755 backup=yes
|
2016-02-13 10:17:20 +00:00
|
|
|
when: ansible_service_mgr in ["sysvinit","upstart"] and ansible_os_family == "RedHat"
|
2016-01-04 13:22:18 +00:00
|
|
|
notify: restart kubelet
|
2015-10-03 20:19:50 +00:00
|
|
|
|
2016-07-08 09:59:21 +00:00
|
|
|
- name: install | Install kubelet launch script
|
|
|
|
template: src=kubelet-container.j2 dest="{{ bin_dir }}/kubelet" owner=kube mode=0755 backup=yes
|
2016-08-18 16:00:05 +00:00
|
|
|
notify: restart kubelet
|
2016-10-18 13:03:07 +00:00
|
|
|
|
|
|
|
# TODO(bogdando) rework to consume the kubeadm from hypercube.
|
|
|
|
# This hack works for debian OS family only and complements the downloads role.
|
|
|
|
- name: install | Copy kubeadm binary from downloaddir
|
|
|
|
command: sh -c "dpkg -x {{local_release_dir}}/kubeadm/deb/kubeadm.deb {{local_release_dir}}/kubeadm &&
|
|
|
|
rsync -piu {{local_release_dir}}/kubeadm/usr/bin/kubeadm {{ bin_dir }}/kubeadm"
|
|
|
|
when: (ansible_os_family in ["Debian"]) and ({{ use_kubeadm|bool }})
|