From 6ccc976054d12e24100a8d62055ce7f69ee4fa9d Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 20 Apr 2022 11:45:22 +0200 Subject: [PATCH] Fix indentation --- playbook.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index d573403..83971f7 100644 --- a/playbook.yml +++ b/playbook.yml @@ -120,7 +120,9 @@ var: k3s_token - name: Add to dictionary - cluster: "{{ cluster | combine( { 'mastertoken': k3s_token }, { 'apiurl': \"https://{{ cluster.virtualip | ansible.utils.ipaddr('address') }}:6443\" } ) }}" + ansible.builtin.set_fact: + cluster: "{{ cluster | combine( { 'mastertoken': k3s_token }, { 'apiurl': \"https://{{ cluster.virtualip | ansible.utils.ipaddr('address') }}:6443\" } ) }}" + when: cluster.mastertoken is not defined - ansible.builtin.debug: