2017-09-26 09:38:58 +00:00
|
|
|
---
|
|
|
|
- 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}
|
2017-11-06 20:01:10 +00:00
|
|
|
- {src: apiserver-key.pem, dest: apiserver.key}
|
2017-09-26 09:38:58 +00:00
|
|
|
- {src: ca.pem, dest: ca.crt}
|
|
|
|
- {src: ca-key.pem, dest: ca.key}
|
2018-03-30 18:00:01 +00:00
|
|
|
- {src: service-account-key.pem, dest: sa.pub}
|
|
|
|
- {src: service-account-key.pem, dest: sa.key}
|
2017-09-26 09:38:58 +00:00
|
|
|
register: kubeadm_copy_old_certs
|