2015-10-04 04:19:50 +08:00
|
|
|
---
|
2015-12-22 18:50:55 +08:00
|
|
|
- name: install | Write kubelet systemd init file
|
2015-12-11 18:32:13 +08:00
|
|
|
template: src=kubelet.service.j2 dest=/etc/systemd/system/kubelet.service backup=yes
|
2016-02-13 18:17:20 +08:00
|
|
|
when: ansible_service_mgr == "systemd"
|
2016-01-25 05:27:55 +08:00
|
|
|
notify: restart kubelet
|
2015-12-31 21:05:55 +08:00
|
|
|
|
2015-12-22 18:50:55 +08:00
|
|
|
- name: install | Write kubelet initd script
|
2016-01-26 00:34:51 +08:00
|
|
|
template: src=deb-kubelet.initd.j2 dest=/etc/init.d/kubelet owner=root mode=0755 backup=yes
|
2016-02-13 18:17:20 +08:00
|
|
|
when: ansible_service_mgr in ["sysvinit","upstart"] and ansible_os_family == "Debian"
|
2016-01-04 21:22:18 +08:00
|
|
|
notify: restart kubelet
|
2015-12-31 21:05:55 +08:00
|
|
|
|
2015-12-22 18:50:55 +08:00
|
|
|
- name: install | Write kubelet initd script
|
2016-01-26 00:34:51 +08:00
|
|
|
template: src=rh-kubelet.initd.j2 dest=/etc/init.d/kubelet owner=root mode=0755 backup=yes
|
2016-02-13 18:17:20 +08:00
|
|
|
when: ansible_service_mgr in ["sysvinit","upstart"] and ansible_os_family == "RedHat"
|
2016-01-04 21:22:18 +08:00
|
|
|
notify: restart kubelet
|
2015-10-04 04:19:50 +08:00
|
|
|
|
2016-07-08 17:59:21 +08:00
|
|
|
- name: install | Install kubelet launch script
|
|
|
|
template: src=kubelet-container.j2 dest="{{ bin_dir }}/kubelet" owner=kube mode=0755 backup=yes
|
|
|
|
register: kubelet_launcher
|
2016-01-22 23:37:07 +08:00
|
|
|
changed_when: false
|