From 03e903a548352b18f2ba4fdbf11a7dd3a27f3f2a Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 20 Apr 2022 09:58:05 +0200 Subject: [PATCH] Fix jinji syntax --- playbook.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/playbook.yml b/playbook.yml index f4f15bc..cdc2435 100644 --- a/playbook.yml +++ b/playbook.yml @@ -43,6 +43,10 @@ async: 300 poll: 0 + - name: Pause to allow initial calls to complete + ansible.builtin.pause: + seconds: 10 + - name: Poll for completion ansible.builtin.async_status: jid: "{{ item.ansible_job_id }}" @@ -96,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('', true) - K3S_URL: cluster.apiurl | default('', true) + K3S_TOKEN: "{{ cluster.mastertoken | default(omit, true) }}" + K3S_URL: "{{ cluster.apiurl | default(omit, true) }}" - name: Retrieve token & reference new cluster ansible.builtin.set_fact: