fbdc2b3e20
Sincea790935d02
all proxy users should be properly configured Now when you have *_PROXY vars in your environment it can leads to failure if NO_PROXY is not correct, or to persistent configuration changes as seen with kubeadm in1c5391dda7
Instead of playing constant whack-a-bug, inject empty *_PROXY vars everywhere at the play level, and override at the task level when needed Signed-off-by: Etienne Champetier <e.champetier@ateme.com> (cherry picked from commit067db686f6
)
15 lines
420 B
YAML
15 lines
420 B
YAML
---
|
|
- name: Get the kubeadm version
|
|
command: "{{ bin_dir }}/kubeadm version -o short"
|
|
register: kubeadm_output
|
|
changed_when: false
|
|
|
|
- name: Set 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
|