diff --git a/playbook.yml b/playbook.yml index d7cf184..4fa07b0 100644 --- a/playbook.yml +++ b/playbook.yml @@ -118,7 +118,11 @@ - name: Add to dictionary ansible.builtin.set_fact: - cluster: "{{ cluster | combine( { 'mastertoken': {{ k3s_token.contents | b64decode }} }, { 'apiurl': {{ 'https://' + ( cluster.virtualip | ansible.utils.ipaddr('address') ) + ':6443' }} } ) }}" + cluster: >- + "{{ cluster | combine( + { 'mastertoken': ( k3s_token.contents | b64decode ) }, + { 'apiurl': 'https://' + ( cluster.virtualip | ansible.utils.ipaddr('address') ) + ':6443' } + ) }}" when: cluster.mastertoken is not defined