2021-03-04 07:08:22 +08:00
|
|
|
---
|
|
|
|
- name: Backup old certs and keys
|
|
|
|
copy:
|
|
|
|
src: "{{ kube_cert_dir }}/{{ item }}"
|
|
|
|
dest: "{{ kube_cert_dir }}/{{ item }}.old"
|
|
|
|
mode: preserve
|
2024-08-28 13:30:56 +08:00
|
|
|
remote_src: true
|
2021-03-04 07:08:22 +08:00
|
|
|
with_items:
|
|
|
|
- apiserver.crt
|
|
|
|
- apiserver.key
|
|
|
|
- apiserver-kubelet-client.crt
|
|
|
|
- apiserver-kubelet-client.key
|
|
|
|
- front-proxy-client.crt
|
|
|
|
- front-proxy-client.key
|
2021-07-12 15:00:47 +08:00
|
|
|
ignore_errors: true # noqa ignore-errors
|
2021-03-04 07:08:22 +08:00
|
|
|
|
|
|
|
- name: Backup old confs
|
|
|
|
copy:
|
|
|
|
src: "{{ kube_config_dir }}/{{ item }}"
|
|
|
|
dest: "{{ kube_config_dir }}/{{ item }}.old"
|
|
|
|
mode: preserve
|
2024-08-28 13:30:56 +08:00
|
|
|
remote_src: true
|
2021-03-04 07:08:22 +08:00
|
|
|
with_items:
|
|
|
|
- admin.conf
|
|
|
|
- controller-manager.conf
|
|
|
|
- kubelet.conf
|
|
|
|
- scheduler.conf
|
2021-07-12 15:00:47 +08:00
|
|
|
ignore_errors: true # noqa ignore-errors
|