Avoid creating k8s cert dir on non-k8s nodes (#4602)
This commit is contained in:
parent
ada5941a70
commit
09fe95bc60
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
dest: "{{ kube_cert_compat_dir }}"
|
dest: "{{ kube_cert_compat_dir }}"
|
||||||
state: link
|
state: link
|
||||||
when:
|
when:
|
||||||
|
- inventory_hostname in groups['k8s-cluster']
|
||||||
- kube_cert_dir != kube_cert_compat_dir
|
- kube_cert_dir != kube_cert_compat_dir
|
||||||
|
|
||||||
- name: Create cni directories
|
- name: Create cni directories
|
||||||
|
|
Loading…
Reference in a new issue