From ec62d83d1912d744228f1b59463b9fc87e8ad0b7 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Thu, 27 Oct 2022 16:04:41 +0200 Subject: [PATCH] remove become since install script does it's own sudo thingy and fix typo --- linux/k3s/master/tasks/main.yml | 1 - linux/k3s/node/tasks/main.yml | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/linux/k3s/master/tasks/main.yml b/linux/k3s/master/tasks/main.yml index 243aa89..cc2bb88 100644 --- a/linux/k3s/master/tasks/main.yml +++ b/linux/k3s/master/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 diff --git a/linux/k3s/node/tasks/main.yml b/linux/k3s/node/tasks/main.yml index d444423..9a7ca6b 100644 --- a/linux/k3s/node/tasks/main.yml +++ b/linux/k3s/node/tasks/main.yml @@ -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