feat(install): etcd deployment now optional

!35
This commit is contained in:
2024-03-12 20:57:20 +09:30
parent 56ac6eb3b4
commit 967829d9e4
2 changed files with 10 additions and 3 deletions

View File

@ -343,7 +343,7 @@
cmd: |
INSTALL_K3S_SKIP_DOWNLOAD=true \
INSTALL_K3S_VERSION="v{{ KubernetesVersion }}{{ KubernetesVersion_k3s_prefix }}" \
/tmp/install.sh --cluster-init
/tmp/install.sh {% if nfc_role_kubernetes_etcd_enabled %}--cluster-init{% endif %}
changed_when: false
when: >
kubernetes_config.cluster.prime.name | default(inventory_hostname) == inventory_hostname