7516fe142f
* Ansible: move to Ansible 3.4.0 which uses ansible-base 2.10.10 * Docs: add a note about ansible upgrade post 2.9.x * CI: ensure ansible is removed before ansible 3.x is installed to avoid pip failures * Ansible: use newer ansible-lint * Fix ansible-lint 5.0.11 found issues * syntax issues * risky-file-permissions * var-naming * role-name * molecule tests * Mitogen: use 0.3.0rc1 which adds support for ansible 2.10+ * Pin ansible-base to 2.10.11 to get package fix on RHEL8
28 lines
711 B
YAML
28 lines
711 B
YAML
---
|
|
- 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: true # noqa ignore-errors
|
|
|
|
- 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: true # noqa ignore-errors
|