You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
899 B

9 years ago
9 years ago
9 years ago
9 years ago
  1. ---
  2. - name: install | Write kubelet systemd init file
  3. template: src=kubelet.service.j2 dest=/etc/systemd/system/kubelet.service backup=yes
  4. when: ansible_service_mgr == "systemd"
  5. notify: restart kubelet
  6. - name: install | Write kubelet initd script
  7. template: src=deb-kubelet.initd.j2 dest=/etc/init.d/kubelet owner=root mode=0755 backup=yes
  8. when: ansible_service_mgr in ["sysvinit","upstart"] and ansible_os_family == "Debian"
  9. notify: restart kubelet
  10. - name: install | Write kubelet initd script
  11. template: src=rh-kubelet.initd.j2 dest=/etc/init.d/kubelet owner=root mode=0755 backup=yes
  12. when: ansible_service_mgr in ["sysvinit","upstart"] and ansible_os_family == "RedHat"
  13. notify: restart kubelet
  14. - name: install | Install kubelet binary
  15. command: rsync -piu "{{ local_release_dir }}/kubernetes/bin/kubelet" "{{ bin_dir }}/kubelet"
  16. register: kubelet_copy
  17. changed_when: false