14 lines
501 B
YAML
14 lines
501 B
YAML
---
|
|
- name: Copy old certs to the kubeadm expected path
|
|
copy:
|
|
src: "{{ kube_cert_dir }}/{{ item.src }}"
|
|
dest: "{{ kube_cert_dir }}/{{ item.dest }}"
|
|
remote_src: yes
|
|
with_items:
|
|
- {src: apiserver.pem, dest: apiserver.crt}
|
|
- {src: apiserver-key.pem, dest: apiserver.key}
|
|
- {src: ca.pem, dest: ca.crt}
|
|
- {src: ca-key.pem, dest: ca.key}
|
|
- {src: service-account-key.pem, dest: sa.pub}
|
|
- {src: service-account-key.pem, dest: sa.key}
|
|
register: kubeadm_copy_old_certs
|