Switch to shell module
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 09:52:12 +02:00
parent 38871d85fe
commit 1f8ab94c7a

View File

@ -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)