2017-09-26 10:38:58 +01:00
|
|
|
---
|
|
|
|
- name: Copy old certs to the kubeadm expected path
|
|
|
|
copy:
|
|
|
|
src: "{{ kube_cert_dir }}/{{ item.src }}"
|
|
|
|
dest: "{{ kube_cert_dir }}/{{ item.dest }}"
|
2019-11-11 16:41:41 +03:00
|
|
|
mode: 0640
|
2017-09-26 10:38:58 +01:00
|
|
|
remote_src: yes
|
|
|
|
with_items:
|
|
|
|
- {src: apiserver.pem, dest: apiserver.crt}
|
2017-11-06 14:01:10 -06:00
|
|
|
- {src: apiserver-key.pem, dest: apiserver.key}
|
2017-09-26 10:38:58 +01:00
|
|
|
- {src: ca.pem, dest: ca.crt}
|
|
|
|
- {src: ca-key.pem, dest: ca.key}
|
2018-04-05 14:32:12 -05:00
|
|
|
- {src: front-proxy-ca.pem, dest: front-proxy-ca.crt}
|
|
|
|
- {src: front-proxy-ca-key.pem, dest: front-proxy-ca.key}
|
|
|
|
- {src: front-proxy-client.pem, dest: front-proxy-client.crt}
|
|
|
|
- {src: front-proxy-client-key.pem, dest: front-proxy-client.key}
|
2018-03-30 13:00:01 -05:00
|
|
|
- {src: service-account-key.pem, dest: sa.pub}
|
|
|
|
- {src: service-account-key.pem, dest: sa.key}
|
2019-04-19 16:01:54 +03:00
|
|
|
- {src: "node-{{ inventory_hostname }}.pem", dest: apiserver-kubelet-client.crt}
|
|
|
|
- {src: "node-{{ inventory_hostname }}-key.pem", dest: apiserver-kubelet-client.key}
|
2017-09-26 10:38:58 +01:00
|
|
|
register: kubeadm_copy_old_certs
|