From 2d075ad7ff1f938382b806dba3d2504ac3527c97 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 20 Apr 2022 10:01:41 +0200 Subject: [PATCH] Try empty string --- playbook.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbook.yml b/playbook.yml index cdc2435..16554cb 100644 --- a/playbook.yml +++ b/playbook.yml @@ -100,8 +100,8 @@ 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(omit, true) }}" - K3S_URL: "{{ cluster.apiurl | default(omit, true) }}" + K3S_TOKEN: "{{ cluster.mastertoken | default('', true) }}" + K3S_URL: "{{ cluster.apiurl | default('', true) }}" - name: Retrieve token & reference new cluster ansible.builtin.set_fact: