14 lines
400 B
YAML
14 lines
400 B
YAML
---
|
|
- name: gets the kubeadm version
|
|
command: "{{ bin_dir }}/kubeadm version -o short"
|
|
register: kubeadm_output
|
|
|
|
- name: sets kubeadm api version to v1beta2
|
|
set_fact:
|
|
kubeadmConfig_api_version: v1beta2
|
|
|
|
- name: kubeadm | Create kubeadm config
|
|
template:
|
|
src: "kubeadm-config.{{ kubeadmConfig_api_version }}.yaml.j2"
|
|
dest: "{{ kube_config_dir }}/kubeadm-config.yaml"
|
|
mode: 0640
|