join with pause

master
Michael Wilson 3 years ago
parent f7bacea6fe
commit 6aaaed59f5
  1. 6
      linux/k3s/master/tasks/main.yml
  2. 3
      linux/k3s/node/tasks/main.yml

@ -1,9 +1,3 @@
- name: run cluster init on first node
shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_master_token }} sh -s - server --cluster-init"
when: k3s_bootstrap
- name: wait for setup completion
wait_for:
port: 6443
delay: 20
when: k3s_bootstrap

@ -1,3 +1,4 @@
- name: join node to cluster
shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_node_token }} sh -s - server --server https://{{ k3s_master_address }}:6443"
shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_node_token }} sh -s - server --server https://{{ k3s_master_address }}:6443 ; sleep 5"
when: k3s_bootstrap
serial: 1

Loading…
Cancel
Save