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.

53 lines
1.4 KiB

9 years ago
  1. ---
  2. - name: install | Copy kubeadm binary from download dir
  3. synchronize:
  4. src: "{{ local_release_dir }}/kubeadm-{{ kubeadm_version }}-{{ image_arch }}"
  5. dest: "{{ bin_dir }}/kubeadm"
  6. compress: no
  7. perms: yes
  8. owner: no
  9. group: no
  10. delegate_to: "{{ inventory_hostname }}"
  11. tags:
  12. - kubeadm
  13. when:
  14. - not inventory_hostname in groups['kube-master']
  15. - name: install | Set kubeadm binary permissions
  16. file:
  17. path: "{{ bin_dir }}/kubeadm"
  18. mode: "0755"
  19. state: file
  20. tags:
  21. - kubeadm
  22. when:
  23. - not inventory_hostname in groups['kube-master']
  24. - name: install | Copy kubelet binary from download dir
  25. synchronize:
  26. src: "{{ local_release_dir }}/kubelet-{{ kube_version }}-{{ image_arch }}"
  27. dest: "{{ bin_dir }}/kubelet"
  28. compress: no
  29. perms: yes
  30. owner: no
  31. group: no
  32. delegate_to: "{{ inventory_hostname }}"
  33. tags:
  34. - kubelet
  35. - upgrade
  36. notify: Node | restart kubelet
  37. - name: install | Set kubelet binary permissions
  38. file:
  39. path: "{{ bin_dir }}/kubelet"
  40. mode: "0755"
  41. state: file
  42. tags:
  43. - kubelet
  44. - upgrade
  45. - name: install | Copy socat wrapper for Container Linux
  46. command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/opt/bin {{ install_socat_image_repo }}:{{ install_socat_image_tag }}"
  47. args:
  48. creates: "{{ bin_dir }}/socat"
  49. when: ansible_os_family in ['Flatcar Container Linux by Kinvolk']