k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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
28 lines
665 B
---
|
|
- name: Backup old certs and keys
|
|
copy:
|
|
src: "{{ kube_cert_dir }}/{{ item }}"
|
|
dest: "{{ kube_cert_dir }}/{{ item }}.old"
|
|
mode: preserve
|
|
remote_src: yes
|
|
with_items:
|
|
- apiserver.crt
|
|
- apiserver.key
|
|
- apiserver-kubelet-client.crt
|
|
- apiserver-kubelet-client.key
|
|
- front-proxy-client.crt
|
|
- front-proxy-client.key
|
|
ignore_errors: yes
|
|
|
|
- name: Backup old confs
|
|
copy:
|
|
src: "{{ kube_config_dir }}/{{ item }}"
|
|
dest: "{{ kube_config_dir }}/{{ item }}.old"
|
|
mode: preserve
|
|
remote_src: yes
|
|
with_items:
|
|
- admin.conf
|
|
- controller-manager.conf
|
|
- kubelet.conf
|
|
- scheduler.conf
|
|
ignore_errors: yes
|