fix(k3s_multi_master): adjusted config so multi-master install works

!9 nofusscomputing/infrastructure/configuration-management/project-production!4
This commit is contained in:
2023-11-18 03:48:47 +09:30
parent 915cdf5e1e
commit c41e12544b
3 changed files with 5 additions and 11 deletions

View File

@ -327,12 +327,12 @@
- name: Install K3s (master nodes)
ansible.builtin.shell:
cmd: |
set -o pipefail
INSTALL_K3S_EXEC="server" \
INSTALL_K3S_SKIP_DOWNLOAD=true \
INSTALL_K3S_VERSION="v{{ KubernetesVersion }}{{ KubernetesVersion_k3s_prefix }}" \
K3S_TOKEN="{{ k3s_join_token }}" \
/tmp/install.sh
executable: /bin/bash
changed_when: false
when: >
Kubernetes_Master | default(false) | bool