2018-12-28 15:27:27 +08:00
|
|
|
---
|
2018-12-19 21:17:58 +08:00
|
|
|
- name: kubeadm | Create kubeadm config
|
|
|
|
template:
|
|
|
|
src: "kubeadm-images.yaml.j2"
|
|
|
|
dest: "{{ kube_config_dir }}/kubeadm-images.yaml"
|
|
|
|
|
2019-01-28 18:00:49 +08:00
|
|
|
- name: kubeadm | Copy kubeadm binary from download dir
|
|
|
|
synchronize:
|
|
|
|
src: "{{ local_release_dir }}/kubeadm"
|
|
|
|
dest: "{{ bin_dir }}/kubeadm"
|
|
|
|
compress: no
|
|
|
|
perms: yes
|
|
|
|
owner: no
|
|
|
|
group: no
|
|
|
|
delegate_to: "{{ inventory_hostname }}"
|
|
|
|
|
|
|
|
- name: kubeadm | Set kubeadm binary permissions
|
|
|
|
file:
|
|
|
|
path: "{{ bin_dir }}/kubeadm"
|
|
|
|
mode: "0755"
|
|
|
|
state: file
|
|
|
|
|
2018-12-19 21:17:58 +08:00
|
|
|
- name: container_download | download images for kubeadm config images
|
2019-01-28 18:00:49 +08:00
|
|
|
command: "{{ bin_dir }}/kubeadm config images pull --config={{ kube_config_dir }}/kubeadm-images.yaml"
|