|
|
@ -28,6 +28,9 @@ |
|
|
|
template: |
|
|
|
src: admin.conf.j2 |
|
|
|
dest: "{{ kube_config_dir }}/admin.conf" |
|
|
|
owner: root |
|
|
|
group: "{{ kube_cert_group }}" |
|
|
|
mode: 0640 |
|
|
|
when: not kubeadm_enabled|d(false)|bool |
|
|
|
|
|
|
|
- name: Create kube config dir |
|
|
@ -50,7 +53,6 @@ |
|
|
|
dest: "{{ artifacts_dir }}/admin.conf" |
|
|
|
flat: yes |
|
|
|
validate_checksum: no |
|
|
|
become: no |
|
|
|
run_once: yes |
|
|
|
when: kubeconfig_localhost|default(false) |
|
|
|
|
|
|
|