You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
757 B

  1. ---
  2. - name: Copy old certs to the kubeadm expected path
  3. copy:
  4. src: "{{ kube_cert_dir }}/{{ item.src }}"
  5. dest: "{{ kube_cert_dir }}/{{ item.dest }}"
  6. remote_src: yes
  7. with_items:
  8. - {src: apiserver.pem, dest: apiserver.crt}
  9. - {src: apiserver-key.pem, dest: apiserver.key}
  10. - {src: ca.pem, dest: ca.crt}
  11. - {src: ca-key.pem, dest: ca.key}
  12. - {src: front-proxy-ca.pem, dest: front-proxy-ca.crt}
  13. - {src: front-proxy-ca-key.pem, dest: front-proxy-ca.key}
  14. - {src: front-proxy-client.pem, dest: front-proxy-client.crt}
  15. - {src: front-proxy-client-key.pem, dest: front-proxy-client.key}
  16. - {src: service-account-key.pem, dest: sa.pub}
  17. - {src: service-account-key.pem, dest: sa.key}
  18. register: kubeadm_copy_old_certs