only sleep when successful

master
Michael Wilson 3 years ago
parent adc42afa48
commit a38efce381
  1. 2
      linux/k3s/node/tasks/main.yml

@ -1,4 +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 ; sleep 5"
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
throttle: 1

Loading…
Cancel
Save