mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-25 17:12:50 +00:00
21 lines
718 B
YAML
21 lines
718 B
YAML
---
|
|
- include_tasks: prepare.yaml
|
|
|
|
- name: ETCD | Upgrade etcd if a newer version is available
|
|
when:
|
|
- .etcd_install_LoadState.stdout | eq "loaded"
|
|
- .etcd.etcd_version | semverCompare (printf ">v%s" (index .etcd_install_version "stdout" "etcd Version"))
|
|
include_tasks: upgrade.yaml
|
|
|
|
- name: ETCD | Expand the etcd cluster by adding new nodes if required
|
|
when:
|
|
- .installed_etcd | empty | not
|
|
- .need_installed_etcd | fromJson | empty | not
|
|
include_tasks: expansion.yaml
|
|
|
|
- name: ETCD | Install etcd and set up the backup service if not already present
|
|
when: .etcd_install_LoadState.stdout | eq "not-found"
|
|
block:
|
|
- include_tasks: install.yaml
|
|
- include_tasks: backup_service.yaml
|