c12s-kubespray/roles/kubernetes/node/tasks/install.yml

21 lines
899 B
YAML
Raw Normal View History

2015-10-03 20:19:50 +00:00
---
2015-12-22 10:50:55 +00:00
- name: install | Write kubelet systemd init file
template: src=kubelet.service.j2 dest=/etc/systemd/system/kubelet.service backup=yes
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
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
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
2015-12-22 10:50:55 +00:00
- name: install | Install kubelet binary
2016-01-23 17:26:07 +00:00
command: rsync -piu "{{ local_release_dir }}/kubernetes/bin/kubelet" "{{ bin_dir }}/kubelet"
register: kubelet_copy
2016-01-22 15:37:07 +00:00
changed_when: false