|
|
@ -1,18 +1,18 @@ |
|
|
|
--- |
|
|
|
- name: Write kubelet systemd init file |
|
|
|
template: src=kubelet.service.j2 dest=/etc/systemd/system/kubelet.service backup=yes |
|
|
|
notify: restart kubelet |
|
|
|
when: init_system == "systemd" |
|
|
|
notify: restart systemd-kubelet |
|
|
|
|
|
|
|
- name: Write kubelet initd script |
|
|
|
template: src=deb-kubelet.initd.j2 dest=/etc/init.d/kubelet owner=root mode=755 backup=yes |
|
|
|
notify: restart reloaded-kubelet |
|
|
|
when: init_system == "sysvinit" and ansible_os_family == "Debian" |
|
|
|
notify: restart kubelet |
|
|
|
|
|
|
|
- name: Write kubelet initd script |
|
|
|
template: src=rh-kubelet.initd.j2 dest=/etc/init.d/kubelet owner=root mode=755 backup=yes |
|
|
|
notify: restart reloaded-kubelet |
|
|
|
when: init_system == "sysvinit" and ansible_os_family == "RedHat" |
|
|
|
notify: restart kubelet |
|
|
|
|
|
|
|
- name: Install kubelet binary |
|
|
|
copy: |
|
|
@ -33,5 +33,4 @@ |
|
|
|
dest=/usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/calico |
|
|
|
mode=0755 |
|
|
|
when: kube_network_plugin == "calico" |
|
|
|
notify: |
|
|
|
- restart kubelet |
|
|
|
notify: restart kubelet |