summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2024-08-14 11:24:22 +0800
committerfumingwei <[email protected]>2024-08-26 10:11:20 +0800
commit46ef47c75604f7d2e2b574a4a25dfcf53233e14b (patch)
tree21935b4c4ea0ad9fb036ac645a1561ad08239d0e
parent89df3da6d5605b4112171e4b0db8aaa4e4f61800 (diff)
bugfix: Using cn mirror to install k3s.v24.07.2rel-24.07dev-24.07
-rw-r--r--ansible/roles/k3s-install/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/k3s-install/tasks/main.yml b/ansible/roles/k3s-install/tasks/main.yml
index b254c8dc..7bb8ee22 100644
--- a/ansible/roles/k3s-install/tasks/main.yml
+++ b/ansible/roles/k3s-install/tasks/main.yml
@@ -32,7 +32,7 @@
url_password: "{{ lookup('env', 'PULP_REPO_PASSWORD') }}"
- name: "execute k3s install"
- shell: curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_SKIP_ENABLE=true INSTALL_K3S_BIN_DIR=/usr/bin INSTALL_K3S_SYSTEMD_DIR=/usr/lib/systemd/system sh -s - --flannel-backend=none --node-name=localhost --disable-helm-controller
+ shell: curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_SKIP_ENABLE=true INSTALL_K3S_BIN_DIR=/usr/bin INSTALL_K3S_SYSTEMD_DIR=/usr/lib/systemd/system sh -s - --flannel-backend=none --node-name=localhost --disable-helm-controller
- name: "enable k3s"
systemd: