From 1f8ab94c7a2c8a96c08b879908f6965565d19383 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 20 Apr 2022 09:52:12 +0200 Subject: [PATCH] Switch to shell module --- playbook.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index 602cdb2..f4f15bc 100644 --- a/playbook.yml +++ b/playbook.yml @@ -79,6 +79,8 @@ state: present path: ~/.ssh/known_hosts with_items: "{{ publickeys.results }}" + # Purely to avoid large amount of spam; no sensitive data here. + no_log: true - name: Provision Kubernetes hosts: k3s_ha @@ -91,7 +93,7 @@ block: - name: Install K3s binary - ansible.builtin.command: + ansible.builtin.shell: cmd: "curl -sfL https://get.k3s.io | sh -s - server --cluster-init --disable local-storage,traefik --tls-san {{ cluster.virtualip | ansible.utils.ipaddr('address') }}" environment: K3S_TOKEN: cluster.mastertoken | default('', true)