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.

28 lines
665 B

  1. ---
  2. - name: Backup old certs and keys
  3. copy:
  4. src: "{{ kube_cert_dir }}/{{ item }}"
  5. dest: "{{ kube_cert_dir }}/{{ item }}.old"
  6. mode: preserve
  7. remote_src: yes
  8. with_items:
  9. - apiserver.crt
  10. - apiserver.key
  11. - apiserver-kubelet-client.crt
  12. - apiserver-kubelet-client.key
  13. - front-proxy-client.crt
  14. - front-proxy-client.key
  15. ignore_errors: yes
  16. - name: Backup old confs
  17. copy:
  18. src: "{{ kube_config_dir }}/{{ item }}"
  19. dest: "{{ kube_config_dir }}/{{ item }}.old"
  20. mode: preserve
  21. remote_src: yes
  22. with_items:
  23. - admin.conf
  24. - controller-manager.conf
  25. - kubelet.conf
  26. - scheduler.conf
  27. ignore_errors: yes