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.

15 lines
618 B

  1. ---
  2. - name: Backup old certs and keys
  3. copy:
  4. src: "{{ kube_cert_dir }}/{{ item.src }}"
  5. dest: "{{ kube_cert_dir }}/{{ item.dest }}"
  6. mode: 0640
  7. remote_src: yes
  8. with_items:
  9. - {src: apiserver.crt, dest: apiserver.crt.old}
  10. - {src: apiserver.key, dest: apiserver.key.old}
  11. - {src: apiserver-kubelet-client.crt, dest: apiserver-kubelet-client.crt.old}
  12. - {src: apiserver-kubelet-client.key, dest: apiserver-kubelet-client.key.old}
  13. - {src: front-proxy-client.crt, dest: front-proxy-client.crt.old}
  14. - {src: front-proxy-client.key, dest: front-proxy-client.key.old}
  15. ignore_errors: yes