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.

29 lines
1.2 KiB

9 years ago
9 years ago
9 years ago
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: init_system == "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: init_system == "sysvinit" 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: init_system == "sysvinit" 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
  18. - name: install | Calico-plugin | Directory
  19. file: path=/usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/ state=directory
  20. when: kube_network_plugin == "calico"
  21. - name: install | Calico-plugin | Binary
  22. command: rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/calico"
  23. when: kube_network_plugin == "calico"
  24. changed_when: false