remove become since install script does it's own sudo thingy and fix

typo
master
Michael Wilson 3 years ago
parent ebe77519b7
commit ec62d83d19
  1. 1
      linux/k3s/master/tasks/main.yml
  2. 3
      linux/k3s/node/tasks/main.yml

@ -1,4 +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"
become: yes
when: k3s_bootstrap

@ -1,4 +1,3 @@
- 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"
become: yes
shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_node_token }} sh -s - server --server https://{{ k3s_master_address }}:6443"
when: k3s_bootstrap

Loading…
Cancel
Save